
rules.scsslint.TrailingSemicolon.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
Property values; @extend
, @include
, and @import
directives; and variable
declarations should always end with a semicolon.
Bad: no semicolon
p {
color: #fff
}
Bad: space between value and semicolon
p {
color: #fff ;
}
Good
p {
color: #fff;
}
CSS allows you to omit the semicolon if the statement is the last statement in
the rule set. However, this introduces inconsistency and requires anyone adding
a property after that property to remember to append a semicolon.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy