rules.scsslint.SingleLinePerProperty.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
Properties within rule sets should each reside on their own line.
Bad
p {
margin: 0; padding: 0;
}
Good
p {
margin: 0;
padding: 0;
}
A special exception is made for single line rule sets. For example the
following is acceptable:
p { margin: 0; padding: 0; }
If you want to also report a lint for single line rule sets, set the
allow_single_line_rule_sets
option to false
.
Configuration Option
Description
allow_single_line_rule_sets
true
or false
(default true)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy