LOC count on SonarCloud website and branch view

Maybe it’s a stupid question but does the LOC value on the SonarCloud website in the branch view show already the “productive” LOC (means LOC counting against the LOC limit) or is it just a regular LOC counter?
I’m asking because I expect to have “–” LOC for a test project folder but no matter which configuration I set, I always see a LOC value which makes me think, that the code is considered as productive code which counts against the LOC.

All right, now everything is clear. The lines in the “Branches” and “Pull Requests” views are only meant as stupid line counters. Only in the “Main Branch” view the real countable lines of code (LOC) are reflected. This is also visible at the naming of the columns: Lines vs. Lines of Code.

I’ve just tried to merge my changes in the trunk branch and then it was obvious.

I ran endless counts of pipeline runs to come to this point because I thought my pipeline task configuration would be wrong. I thought the lines column means the same in all views :frowning:

Dear developers, please choose a less confusing column naming!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.