rules.scsslint.SingleLinePerSelector.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
Split selectors onto separate lines after each comma, and have each individual
selector occupy a single line.
Bad: comma-separated selectors not on their own lines
.error p, p.explanation {
...
}
Bad: descendent selector spread over multiple lines
.error
p,
p.explanation {
...
}
Good: each selector sequence is on its own individual line
.error p,
p.explanation {
...
}
Note that selectors containing interpolation are ignored, since the Sass parser
cannot construct the selector parse tree at parse time, only at run time (which
is too late for scss-lint
to do anything with).
© 2015 - 2025 Weber Informatics LLC | Privacy Policy