error observed
I have in one of my projects a few HUGE C/C++ header files with test data in total 40k lines. No real value in scanning those with sonarqube (I have ~6 headers, but in the example below I show only two)
I have tried to exclude the files:
I have also tried to add the four headers to my SonarQube webpage → Administration > Analysis Scope > Source File Exclusions
However I see that these files STILL are counted into my total amount of lines. For that project it is ok, but I then tried to add a new project, which has the first as a submodule - and suddently I am way above the 100k limit of my paid SonarQube developer license. Bummer!
I like to honor the license limitation but it is really stupid for me that 4 data files count as they do, and ultimatively limit me in what I can do (fair and reasonably) with SonarQube.
it probably means you have not properly excluded those files if you still see them in your SonarQube UI. Could you please share the log of the sonar-scanner with --debug parameter?
then I believe they are not imported into SonarQube and not counting for LOC counting, it is not easy to help you without logs or more information just based on some statements.
@mpaladin I am starting to see a pattern here.
Instead of excluding files I started to only include files around the big files - suddent the line count dropped like a rock…
I will investigate further - but I foresee a real bug report coming up.