Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

Work with Sonarqube 5.1, add NCLOC metrics #10

Merged
merged 1 commit into from Jan 29, 2016

Conversation

caschnee
Copy link

  • "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

@coveralls
Copy link

Coverage Status

Coverage decreased (-7.74%) to 59.1% when pulling 059635c on cbulit:master into 43f89c3 on Pablissimo:master.

@Pablissimo
Copy link
Owner

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!

@DennisJaamann
Copy link

Hello, any update on this?

@tsjensen
Copy link

tsjensen commented Jan 6, 2016

Already looking forward to seeing NCLOC metrics ... 😃

@Pablissimo
Copy link
Owner

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.

@Pablissimo Pablissimo merged commit 059635c into Pablissimo:master Jan 29, 2016
@Pablissimo
Copy link
Owner

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...

@marcules
Copy link

hi!
Should the LOC value in the (main) dashboard now be filled with this change?

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.

@Pablissimo
Copy link
Owner

Not sure if I'm understanding, but this is the main and project dashboards for my test instance that examines the open-source TypeScriptSnake project:

image

image

Are you not seeing one or other of the two LOC values populated?

@marcules
Copy link

marcules commented Feb 1, 2016

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.

chrome_2016-02-01_10-39-03
chrome_2016-02-01_10-42-35

@marcules
Copy link

marcules commented Feb 1, 2016

@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! :)

@Pablissimo
Copy link
Owner

To be honest I'd have expected it to just run really, with your original steps. But glad you're moving!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants