Skip to content
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

warning not raised when coverage enabled #643

Open
RustedBones opened this issue Oct 21, 2024 · 0 comments
Open

warning not raised when coverage enabled #643

RustedBones opened this issue Oct 21, 2024 · 0 comments

Comments

@RustedBones
Copy link

Describe the bug

I'm using @nowarn to silence warnings when the returned value of an expression is discarded.

With scala 2.13.15 and scoverage 2.2.1, I get the @nowarn annotation does not suppress any warnings only when coverage is enabled.

You can see the build here where it only fails when coverage is on (fatal warnings is enabled)

Expected behavior

when enabling coverage, I expect the compiler to report the same warnings as when coverage is disabled

What build tool are you using?

sbt

Version of scoverage

v2.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant