Skip to content

[apex] Remove apex statistical rules#1750

Merged
jsotuyod merged 7 commits into
pmd:pmd/7.0.xfrom
oowekyala:remove-apex-stat-rules
Apr 11, 2019
Merged

[apex] Remove apex statistical rules#1750
jsotuyod merged 7 commits into
pmd:pmd/7.0.xfrom
oowekyala:remove-apex-stat-rules

Conversation

@oowekyala

Copy link
Copy Markdown
Member

This starts removing statistical rules from the codebase, refs #1550, #1432

This simplifies the existing rules very much, with the new base class AbstractCounterCheckRule. I kept it package private since its only purpose is to eliminate some duplication (and sync the name of the property). The common logic is so simple that anyone can implement it themselves in a few lines.

One difference between the refactored rules and their 6.0.0 version is that the "minimum" property is now an integer instead of a double, so property sets with eg "1.0" won't work anymore. This is expected though, nearly all our metrics are integers.

After this PR the other language modules can be done in parallel, those depend on the "CommonPropertyDescriptors" internal class in pmd-core.

@oowekyala oowekyala added this to the 7.0.0 milestone Apr 2, 2019
@ghost

ghost commented Apr 2, 2019

Copy link
Copy Markdown
1 Warning
⚠️ Running pmdtester failed, this message is mainly used to remind the maintainers of PMD.

Generated by 🚫 Danger

@jsotuyod jsotuyod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this change and the direction things are going with the metrics framework!

@jsotuyod jsotuyod added the is:WIP For PRs that are not fully ready, or issues that are actively being tackled label Apr 10, 2019
@jsotuyod jsotuyod removed the is:WIP For PRs that are not fully ready, or issues that are actively being tackled label Apr 11, 2019
@jsotuyod jsotuyod merged commit 0b650f6 into pmd:pmd/7.0.x Apr 11, 2019
@oowekyala oowekyala deleted the remove-apex-stat-rules branch April 11, 2019 17:04
@adangel adangel added the is:feature-removal Remove an unneeded unused feature label Jan 12, 2023
@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

is:feature-removal Remove an unneeded unused feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants