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

rules.scsslint.SpaceAroundOperator.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

Operators should be formatted with a single space on both sides of an infix operator. These include +, -, *, /, %, ==, !=, >, >=, <, and <=.

Bad: no space around operator

margin: 5px+5px;

Bad: more than one space around operator

margin: 5px   +   5px;

Good

margin: 5px + 5px;

Note that this linter only applies to actual, evaluated operators. So values like nth-child(2n+1), 10px/12px, and my-font will not be linted, as they are valid CSS.

The style option allows you to specify a different preferred style.

Configuration Option Description
style one_space, at_least_one_space, no_space (default one_space)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy