dotnet / roslyn-analyzers

MIT License
1.58k stars 464 forks source link

Code metrics "lines of source code" incorrect #7049

Open vsfeedback opened 9 months ago

vsfeedback commented 9 months ago

This issue has been moved from a ticket on Developer Community.


The "Lines of Source code" metric can be incorrect. I'm seeing cases where lines of source code is less than lines of executable code and when I expand, the reason becomes clear. Some of the namespace level "roll up" values are zero when there are many non-zero values in their expansion. See the attached "BadLinesOfCode.png".

image


Original Comments

Feedback Bot on 11/10/2023, 08:08 AM:

(private comment, text removed)

Feedback Bot on 11/10/2023, 07:39 PM:

(private comment, text removed)


Original Solutions

(no solutions)

fitdev commented 2 months ago

I experience exactly the same issue with the latest VS 17.11 P2