Skip to content

[java] Is it possible to disable SuppressWarnings and NOPMD filters? #2736

@swsms

Description

@swsms

Description:

There is my case: we are developing an educational online platform for programmers and check their code using configured PMD and some other linters. But some of out advanced learners just disable all PMD checks for their code using the @SuppressWarnings("PMD") annotation or NOPMD comments.

Is it possible to fully ignore the SuppressWarnings annotation and the NOPMD comment using some kind of PMD settings?
Unfortunately, I cannot find this in docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rules

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions