
rules.scsslint.ChainedClasses.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
Reports when you define a rule set using a selector with chained classes
(a.k.a. adjoining classes).
Bad
.foo {
padding: 5px;
}
.bar {
margin: 5px;
}
.foo.bar {
display: block;
}
Good: write chained classes as new class
.foo {
padding: 5px;
}
.bar {
margin: 5px;
}
.new-class {
display: block;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy