![JAR search and dependency download from the Maven repository](/logo.png)
rules.tslint.one-variable-per-declaration.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-typescript Show documentation
Show all versions of sonar-web-frontend-typescript Show documentation
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: one-variable-per-declaration
Disallows multiple variable definitions in the same declaration statement.
Config
One argument may be optionally provided:
ignore-for-loop
allows multiple variable definitions in a for loop declaration.
Examples
"one-variable-per-declaration": true
"one-variable-per-declaration": [true, "ignore-for-loop"]
Schema
{
"type": "list",
"listType": {
"type": "enum",
"enumValues": [
"ignore-for-loop"
]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy