
rules.tslint.typedef.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: typedef
Requires type definitions to exist.
Config
Six arguments may be optionally provided:
"call-signature"
checks return type of functions.
"parameter"
checks type specifier of function parameters for non-arrow functions.
"arrow-parameter"
checks type specifier of function parameters for arrow functions.
"property-declaration"
checks return types of interface properties.
"variable-declaration"
checks variable declarations.
"member-variable-declaration"
checks member variable declarations.
Examples
"typedef": [true, "call-signature", "parameter", "member-variable-declaration"]
Schema
{
"type": "list",
"listType": {
"type": "enum",
"enumValues": [
"call-signature",
"parameter",
"arrow-parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy