In my current project, I am attempting to analyze an Angular application using SonarQube. This particular project consists of a mix of JavaScript and TypeScript files.
During the Sonar analysis process, I have noticed that while issues are being generated for the .js
files, there are no issues showing up for any of the .ts
files.
The tools and plugins I am utilizing include:
- Sonarqube - version 6.2
- Sonar Scanner- version 3.0.3.778
- Jenkins for building the SonarQube report
- SonarTsPlugin plugin for generating the report
Here is a snippet of the configuration in my sonar-project.properties file:
# Project identification
sonar.projectKey=Sonar-Test
sonar.projectVersion=2.0
sonar.projectName=Sonar-Test
sonar.sourceEncoding=UTF-8
sonar.sources=/jenkins/workspace/Sonar-test-PA-Web/src
sonar.ts.tslint.projectPath=/jenkins/workspace/Sonar-test/tsconfig.json
sonar.exclusions=/jenkins/workspace/Sonar-test/node_modules/**
sonar.ts.tslint.path=/jenkins/workspace/Sonar-test/node_modules/tslint/bin/tslint
sonar.ts.tslint.configPath=/jenkins/workspace/Sonar-test/tslint.json
sonar.ts.tslint.rulesDir=/jenkins/workspace/Sonar-test/node_modules/codelyzer
Despite following all the steps outlined in the official documentation, I have encountered a situation where no issues are being detected for my .ts
files.