Skip to content

Do not detect US_USELESS_SUPPRESSION_ON_* warnings on Generated code. #3350

@SimSonic

Description

@SimSonic

In my project I have lombok which is set to add @SuppressFBWarnings onto all generated constructors/methods thought it's configuration:

// root lombok.config
lombok.extern.findbugs.addSuppressFBWarnings = true

After updating to SpotBugs 4.9.3 javac throws medium warnings US_USELESS_SUPPRESSION_ON_* on generated code.

I believe we should have some possibility to prevent generated code from being scanned.

May be disable all warnings including these ones on all code which annotated as @Generated (javax/jakarta?).

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