Static code analysis with sonarqube tslint
#SonarTS documents
https://docs.sonarqube.org/display/PLUG/SonarTS
#Description
SonarTS detects bugs, vulnerabilities and code smells in TypeScript code.
#Setup
- Install node.js
- Install typescript
- Install SonarQube Server see Setup and Upgrade for more details
- Install SonarQube Scanner and be sure your can call sonar-scanner from the directory where you have your source code
- Install SonarTS (see Installing a Plugin for more details)
- Run your analysis with the SonarQube Scanner by executing the following command from the root directory of the project:
sonar-scanner -Dsonar.projectKey=xxx -Dsonar.sources=.
- Typescript testexecution and coverage config
- Tslint configurations
Refer the above code base for setting up the project with static analysis tool.