SonarTsPlugin
SonarTsPlugin copied to clipboard
Cannot see TypeScript analysis report
I am using this plugin fro typescript analysis on sonarqube.
Even though the quality profile is used on analysis (Showed in SonarQube panel) but I cannot see the analysis report for typescript (I know that I have issues on code).
In the TFS CI build console the below log is printed
INFO: Sensor Linting sensor for TypeScript files [typescript] INFO: Sensor Linting sensor for TypeScript files [typescript] (done) | time=156ms INFO: Sensor Combined LCOV and LOC sensor [typescript] INFO: Sensor Combined LCOV and LOC sensor [typescript] (done) | time=32ms
I followed the installation procedure and all rules are active.
So your first stop to diagnose this stuff is to get the scanner running with the -X flag to get diagnostic info - it'll hopefully tell you if there's anything crazy going on, should tell you what command lines are being supplied to tslint etc.
Second issue that I've only seen when using TFS - does the user account running the build agent have write permissions to the folder it is building from? The plugin uses a temporary folder that should be writeable anyway, but we've seen trouble there.