Skip to content

UnusedMethodParameter with @unused annotation on constructor #901

@Darkttd

Description

@Darkttd

Hi there,
We introduced scapegoat recent, and we are trying to resolve warnings and errors on scapegoat results.
By the way, we found the case that we marked @unused annotation but it still marked warning with UnusedMethodParameter

class Foo(@annotation.unused x: Int)
/path/to/file/Foo.scala:21:30: [scapegoat] [UnusedMethodParameter] Unused parameter
  Unused constructor or method parameters should be removed.
  Unused constructor parameter (x).
class Foo(@annotation.unused x: Int)
                             ^

I believe that the annotation @unused should surpress UnusedMethodParameter warning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions