All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rules.scsslint.TrailingSemicolon.html Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.1.0
Show newest version

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