Skip to content

warning not raised when coverage enabled #643

Open
@RustedBones

Description

@RustedBones

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions