Work with Sonarqube 5.1, add NCLOC metrics #10
Conversation
caschnee
commented
Apr 20, 2015
- "Upgrade" for Sonarqube 5.1:
- Add a "scm" tag in the pom.xml file
- Remove the line offset when adding a new issue from tslint to sonarqube
- Add a simple sensor (LOCSensor) that report the NCLOC metrics
…em when adding the tslint issues
Thanks for the work on this, and sorry I've still not merged - unfortunately I can't find time before I go on holiday to review and merge this guy but once I'm back I'm aiming to do so plus update for a more recent version of TsLint and get a proper binary release done - so it's coming! |
Hello, any update on this? |
Already looking forward to seeing NCLOC metrics ... 😃 |
Annoyingly I've not managed to get this merged yet, and after other contributions it'll need a bit of finessing to get in (conflicts exist at the mo). Still, maybe this is the kick-up-the-arse to get it sorted so I'll try and find time next week. |
Right, I've merged almost all of this (8 months later...) - the one thing I excluded was the 'fix' for attributing issues to line numbers. On my system at least your removal of the +1 causes issues to be reported on the line about where they actually exist. Unsure what's happening there... |
hi! I've rebuilt and reinstalled the plugin with the new sources and started a new analysis, but the value is still empty in the overview. The Project dashboard itself shows the LOC though. |
Hi @Pablissimo The two metrics are not filled here. Can you give me some pointers how I'd debug this? I've mvn installed SonarTsPlugin on friday, copied it over the existing plugin, restarted sonar, and triggered a new build of "frontend project a". Here's how the dashboards look like. |
@Pablissimo I'm sorry for the inconvenience, it worked now after I uninstalled. Restarted. Re-Built it. Installed it. Restarted. Made a new run. Thank you for your great plugin and thanks @schnee3 for this great contribution! :) |
To be honest I'd have expected it to just run really, with your original steps. But glad you're moving! |