Using Developer Edition, Version 8.1 with standard scanners that come with it - which is the problem.
With the new edition comes SonarHTML which has caused our lines of code (LoC) count to jump dramatically, something not mentioned in the sales pitch
Is there a way to switch off a specific scanner for a project, or globally? I tried uninstallin the SonarHtml scanner, but the additional line count was still in the project information pane, but instead of saying âHTMLâ, it said âWebâ, and the increase in the LoC is still present.
How can I exclude HTML from making up the LoC count?
One would expect that only languages supported only in paid version (C/C++, âŚ) should impact the LOC.
Actually, we have to deploy 2 SonarQube instances to effectively (from cost perspective) perform SCA on either oss-supported or commercially-supported languages. Which also mean configuring 2 analysis, with relevant exclusions, per projectâŚ
Nope, that didnât work, Iâm going to try editing the html suffixes now⌠Iâve previously removed all but one of them and then renamed that one, but Iâm not hopeful.
There are multiple places exclusions can be set. If your analysis passes any exclusions in your properties files or on the command line then theyâll override anything set in the UI at project level. Could that be the case? To be sure, you can use sonar.scanner.dumpToFile=filename.txt to see the final properties list analysis operates on.
As a last-ditch, you could also uninstall that analyzer.
Editing the HTML suffixes didnât work either; Iâve also unsinstalled the analyser previously, but the files are still counted in a miscellaneous âWebâ bucket.
However, Iâm going to try the dumpToFile setting,and Iâll have a good look at that.
Right, deleting a recreating the project has corrected the file LOC count, along with deleting all the HTML rules apart from one (not needed at the moment).