
rules.scsslint.PrivateNamingConvention.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-web-frontend-scss Show documentation
Show all versions of sonar-web-frontend-scss Show documentation
Consume reports generated by scsslint for code quality. Also consume reports for code duplication (either simian or cpd). The information generated by reports are added in Sonar
Details
Disabled by default
Enforces that functions, mixins, and variables that follow the private naming
convention (default to underscore-prefixed, e.g. $_foo
) are defined and used
within the same file.
Bad
$_foo: #f00;
p {
color: #00f;
}
Bad
p {
color: $_foo;
}
Bad
p {
color: $_foo;
}
$_foo: #f00;
Good
$_foo: #f00;
p {
color: $_foo;
}
Configuration Option
Description
prefix
Prefix used to denote "private" (default _
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy