-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[core] Force disable suppressions (PMD + CPD) #2896
Comments
Right You want to run PMD/CPD without any suppressions applied. I don't think, this is currently supported. Suppressions are basically always enabled. CPD Suppression is described here: https://pmd.github.io/latest/pmd_userdocs_cpd.html#suppression |
Thanks for your answer. We use static code analysis tools such as PMD in the context of programming exercises. We automatically assess student submissions by running tests and static code analysis tools. If there are options to circumvent violations, the students will find them 😄. |
Description:
Hello,
PMD itself has the option -showsuppressed, to disable suppressions added to the code (via SupressWarnings or comment filtering). Does something similar exist for CPD? I would appreciate such a feature and would gladly contribute, if it doesn't exist yet.
Edit:
It seems like PMD uses this option to create another section in the report:
Is it be possible to add an option which disables all suppressions completely?
Best regards,
Stefan
The text was updated successfully, but these errors were encountered: