Skip to content

Adjust PMD violation ceilings to PMD 7 counts - #485

Merged
ppkarwasz merged 1 commit into
trunkfrom
fix/pmd-7-violation-ceilings
Jul 31, 2026
Merged

Adjust PMD violation ceilings to PMD 7 counts#485
ppkarwasz merged 1 commit into
trunkfrom
fix/pmd-7-violation-ceilings

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

Dependabot PRs were auto-merged without the build being a required check, and #479 (the maven-minor-updates group) bumped maven-pmd-plugin 3.15.0 to 3.28.0, moving from PMD 6 to PMD 7.17.0.

The new PMD finds a different violation mix, and flume-ng-core now exceeds its pmd.maxAllowedViolations ceiling (69 found vs 64 allowed), breaking the build on all platforms. The merge commits triggered no push builds (bot-token merges do not trigger workflows), so trunk is red without CI showing it.

This ratchets every module's pmd.maxAllowedViolations to the actual PMD 7.17.0 count:

Module Old New
flume-ng-core 64 69
flume-ng-sdk 170 30
flume-ng-auth 7 5
flume-ng-configuration 17 13
flume-ng-node 7 5
flume-file-channel 19 21
flume-spillable-memory-channel 8 4
flume-taildir-source 3 4
flume-ganglia-monitor (none) 3
flume-syslog-source (none) 1

ganglia-monitor and syslog-source were previously PMD-clean; they only fail once the reactor gets past flume-ng-core, so their new ceilings are needed too. Fixing the violations themselves (mostly UnnecessaryModifier in flume-ng-core) remains a TODO.

Verified locally with a full mvn -T1C verify (tests included): BUILD SUCCESS, all modules at or under their ceilings.

The other auto-merged bumps are fine: JUnit Jupiter 6.1.2 and apacheds-jdbm1 built green standalone, and the mockserver-netty PR only hit the known-flaky TestExecSource.testBatchTimeout on Windows.

The maven-pmd-plugin 3.15.0 to 3.28.0 bump (#479) switched from PMD 6
to PMD 7.17.0, which finds a different violation mix in most modules.
Ratchet each module's `pmd.maxAllowedViolations` to the new actual
count so the build passes again. The counts rise in some modules and
drop in others (flume-ng-sdk goes from 170 to 30); fixing the
violations themselves remains a TODO.

Assisted-By: Claude Fable 5 <noreply@anthropic.com>
@ppkarwasz
ppkarwasz force-pushed the fix/pmd-7-violation-ceilings branch from 9c62217 to cef4fb4 Compare July 31, 2026 22:18
@ppkarwasz
ppkarwasz merged commit f401fa9 into trunk Jul 31, 2026
10 of 11 checks passed
@ppkarwasz
ppkarwasz deleted the fix/pmd-7-violation-ceilings branch July 31, 2026 22:49
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.

1 participant