Skip to content

Total number of code lines (without exclusion)? #1734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sebastianslutzky opened this issue Jan 30, 2025 · 1 comment
Open

Total number of code lines (without exclusion)? #1734

sebastianslutzky opened this issue Jan 30, 2025 · 1 comment
Labels
question This issue is a question

Comments

@sebastianslutzky
Copy link

Hello,
in our organisation we need to capture how many lines of code are getting excluded from coverage by devs.
I've noticed that code annotated with ExcludeFromCodeCoverageAttribute are getting ignored in all stats, so there is no way to tell how many lines of code were affected by it. the total lines of codes also ignore those skipped

is there any way of obtaining this stat?
thanks
Sebastian

@github-actions github-actions bot added the untriaged To be investigated label Jan 30, 2025
@Bertk
Copy link
Collaborator

Bertk commented Mar 13, 2025

Thank you for bringing this to our attention.

Coverlet does not support counting ignored lines and also ExcludeFromCoverage cannot be suppressed using a property. I guess the metric for ignored lines of code lines cannot be achieve using ExcludeFromCoverage.

Coverlet is using ReportGenerator for tests and this tool might be also helpful for your organization.

@Bertk Bertk added question This issue is a question and removed untriaged To be investigated labels Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants