Skip to content

Disable PMD UnnecessaryLocalRule due to false positives#1514

Open
rddwnn wants to merge 1 commit intoyegor256:masterfrom
rddwnn:qulice/pmd-toomanymethods-tests-1508
Open

Disable PMD UnnecessaryLocalRule due to false positives#1514
rddwnn wants to merge 1 commit intoyegor256:masterfrom
rddwnn:qulice/pmd-toomanymethods-tests-1508

Conversation

@rddwnn
Copy link

@rddwnn rddwnn commented Feb 20, 2026

Fixes #1508

Test classes can be intentionally large; the default TooManyMethods threshold
is too strict and causes noisy failures. This PR relaxes the threshold to reduce
false positives while keeping the rule enabled.

@yegor256
Copy link
Owner

@rddwnn this PR removes the check entirely, while we need to remove it only for test classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PMD.TooManyMethods should not complain about *Test.java files

2 participants