All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.css.checks.l10n.less.less-variable-naming-convention.html Maven / Gradle / Ivy

There is a newer version: 4.13
Show newest version

Shared coding conventions allow teams to collaborate efficiently. This rule checks that all Less variable names match a provided regular expression.

Noncompliant Code Example

With format ^[a-z][-a-z0-9]*$:
@myColor: green; /* Noncompliant */
@my_color: green; /* Noncompliant */

Compliant Solution

With format ^[a-z][-a-z0-9]*$:
@my-color: green;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy