I’m currently using Sonarqube 7.9.2 and I am trying to have a CI job that scans a Nativescript application.
I have set my sonar-project.properties like this:
sonar.exclusions=/node_modules/,/*.spec.ts
sonar.sources=src,projects/code
sonar.test.inclusions=src//.spec.ts
sonar.ts.tslint.configPath=tslint.json
sonar.typescript.lcov.reportPaths=src/coverage/lcov.info
sonar.coverage.exclusions=src/environments/
sonar.log.level=DEBUG
sonar.language=ts
In my CI job,
1-install java
2-install node.js v12.13
3-npm install typescript (v3.8.3)
4-npm run test (unit tests)
5-run analysis
…
I am still getting the error:
“ERROR: No TypeScript compiler found in your project, analysis of typescript files is aborted”. I have reached a point where I don’t know what else to do.