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

rules.tslint.no-unused-expression.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: no-unused-expression

Disallows unused expression statements.

Unused expressions are expression statements which are not assignments or function calls (and thus usually no-ops).

Rationale

Detects potential errors where an assignment or function call was intended. Also detects constructs such as new SomeClass(), where a constructor is used solely for its side effects, which is considered poor style.

Config

Not configurable.

Examples
"no-unused-expression": true
Schema
{}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy