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

rules.tslint.one-line.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: one-line

Requires the specified tokens to be on the same line as the expression preceding them.

Config

Five arguments may be optionally provided:

  • "check-catch" checks that catch is on the same line as the closing brace for try.
  • "check-finally" checks that finally is on the same line as the closing brace for catch.
  • "check-else" checks that else is on the same line as the closing brace for if.
  • "check-open-brace" checks that an open brace falls on the same line as its preceding expression.
  • "check-whitespace" checks preceding whitespace for the specified tokens.
Examples
"one-line": [true, "check-catch", "check-finally", "check-else"]
Schema
{
"type": "list",
"listType": {
"type": "enum",
"enumValues": [
"check-catch",
"check-finally",
"check-else",
"check-open-brace",
"check-whitespace"
]
}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy