
rules.scsslint.ElsePlacement.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
Place @else
statements on the same line as the preceding curly brace.
Bad
@if {
...
}
@else {
...
}
Good
@if {
...
} @else {
...
}
This will ignore single line @if
/@else
blocks, so you can write:
@if { ... } @else { ... }
You can prefer to enforce having @else
on its own line by setting the style
configuration option to new_line
.
Configuration Option
Description
style
same_line
or new_line
(default same_line
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy