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

rules.tslint.curly.html Maven / Gradle / Ivy

Go to download

Consume reports generated by tslint for code quality. Also consume reports for code duplication (either simian or cpd). Consumes the unit/integration tests reports (generated by Jasmin) coverage report (lcov generated by Istanbul). The information generated by reports are added in Sonar

The newest version!

Details

Rule: curly

Enforces braces for if/for/do/while statements.

Rationale
if (foo === bar)
foo++;
bar++;

In the code above, the author almost certainly meant for both foo++ and bar++ to be executed only if foo === bar. However, he forgot braces and bar++ will be executed no matter what. This rule could prevent such a mistake.

Config

Not configurable.

Examples
"curly": true
Schema
{}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy