Skip to content

[java] Update rule SwitchDensity#3458

Merged
adangel merged 6 commits into
pmd:pmd/7.0.xfrom
oowekyala:update-SwitchDensity
Aug 23, 2021
Merged

[java] Update rule SwitchDensity#3458
adangel merged 6 commits into
pmd:pmd/7.0.xfrom
oowekyala:update-SwitchDensity

Conversation

@oowekyala

Copy link
Copy Markdown
Member

Describe the PR

This also adds support for switch expressions, composed switch labels (eg case 0, 1, 2:) and switch arrow branches for free

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)

Maybe we should consider using metrics for this... whatever

Add NodeStream#sumBy
@oowekyala oowekyala added this to the 7.0.0 milestone Aug 9, 2021
@adangel adangel self-assigned this Aug 22, 2021
@ghost

ghost commented Aug 22, 2021

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 45 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 31204 violations,
introduces 21152 new violations, 3 new errors and 0 new configuration errors,
removes 137925 violations, 8 errors and 3 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 45 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 31204 violations,
introduces 21152 new violations, 3 new errors and 0 new configuration errors,
removes 137925 violations, 8 errors and 3 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 45 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 31204 violations,
introduces 21152 new violations, 3 new errors and 0 new configuration errors,
removes 137925 violations, 8 errors and 3 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 77 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 31204 violations,
introduces 21184 new violations, 3 new errors and 0 new configuration errors,
removes 137925 violations, 8 errors and 3 configuration errors.
Full report

Generated by 🚫 Danger

oowekyala and others added 2 commits August 23, 2021 15:25
Co-authored-by: Andreas Dangel <andreas.dangel@pmd-code.org>
@adangel adangel merged commit d5240ff into pmd:pmd/7.0.x Aug 23, 2021
@oowekyala oowekyala deleted the update-SwitchDensity branch August 24, 2021 09:24
@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