Skip to content

[java] Update ExcessiveSomething rules#3308

Merged
adangel merged 3 commits into
pmd:pmd/7.0.xfrom
oowekyala:update-ExcessiveXX
Jun 11, 2021
Merged

[java] Update ExcessiveSomething rules#3308
adangel merged 3 commits into
pmd:pmd/7.0.xfrom
oowekyala:update-ExcessiveXX

Conversation

@oowekyala

Copy link
Copy Markdown
Member

Describe the PR

Update rules

  • ExcessiveClassLengthRule
  • ExcessiveImportsRule
  • ExcessiveMethodLengthRule
  • ExcessiveParameterListRule
  • ExcessivePublicCountRule

most of them without changes.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

ExcessiveClassLengthRule
ExcessiveImportsRule
ExcessiveMethodLengthRule
ExcessiveParameterListRule
ExcessivePublicCountRule
@oowekyala oowekyala added this to the 7.0.0 milestone May 28, 2021
@ghost

ghost commented May 28, 2021

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 550 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 0 violations,
introduces 82 new violations, 1 new errors and 0 new configuration errors,
removes 304172 violations, 8 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 304 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 1 new errors and 0 new configuration errors,
removes 303556 violations, 8 errors and 2 configuration errors.
Full report

Generated by 🚫 Danger

@adangel

adangel commented Jun 11, 2021

Copy link
Copy Markdown
Member

It looks like only ExcessiveImports and ExcessiveParameterList report violations, the other rules (ExcessivePublicCount, ExcessiveMethodLength and ExcessiveClassLength) are missing.... although they should have been executed (https://chunk.io/pmd/21f16d5b72d84252a6c7558239e43f75/diff2/patch_config.xml), they look like, they are just skipped....

I'll have a look at this.

@adangel

adangel commented Jun 11, 2021

Copy link
Copy Markdown
Member

Maybe it's really because there were literally now changes for these rules. The regression tester for pmd7 really didn't execute these: https://chunk.io/pmd/21f16d5b72d84252a6c7558239e43f75/diff1/patch_config.xml

But for the comparison with master, they should have been there... but I see false-negatives now. Actually, there are only removed violations. Maybe we filter really only to the two rules that have changes?

@adangel

adangel commented Jun 11, 2021

Copy link
Copy Markdown
Member

Ok, so we first execute pmd-regression-tester against pmd/7.0.x. There we figured out (from git diff), that only the rules ExcessiveImports and ExcessiveParameterList have been changed and run PMD with a ruleset only with these two rules enabled.
After that, we create the comparison against master - we don't run PMD again, we use the report from the previous run. So in effect, only the two rules have been executed.

The regression tester executes only rules, that actually have
been changed.
@adangel adangel merged commit 8dcd5b2 into pmd:pmd/7.0.x Jun 11, 2021
@oowekyala oowekyala deleted the update-ExcessiveXX branch June 11, 2021 09:46
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
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.

2 participants