
rules.tslint.member-access.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: member-access
Requires explicit visibility declarations for class members.
Rationale
Explicit visibility declarations can make code more readable and accessible for those new to TS.
Config
Two arguments may be optionally provided:
"check-accessor"
enforces explicit visibility on get/set accessors (can only be public)
"check-constructor"
enforces explicit visibility on constructors (can only be public)
Examples
"member-access": true
"member-access": [true, "check-accessor"]
Schema
{
"type": "list",
"listType": {
"type": "enum",
"enumValues": [
"check-accessor",
"check-constructor"
]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy