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

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

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