Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[apex] Remove apex statistical rules #1750

Merged
merged 7 commits into from Apr 11, 2019

Conversation

oowekyala
Copy link
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
@pmd-test
Copy link

pmd-test commented Apr 2, 2019

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

Generated by 🚫 Danger

Copy link
Member

@jsotuyod jsotuyod left a comment

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.

None yet

4 participants