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