Skip to content

When an abstract rule is changed, all violations are reported as removed. #140

@UncleOwen

Description

@UncleOwen

pmd/pmd#6021

Why does the regressiontester still report that all violations are removed?

The stderr output from #6011 indicates that it tries to instantiate a rule that cannot be instantiated: https://pull-requests.pmd-code.org/pr-6011/35ce121bac4fee9b37c756b25f556653eb048a77/regression/openjdk-11/patch_stderr.txt

if filename.start_with?(PATH_TO_PMD_JAVA_BASED_RULES, PATH_TO_PMD_XPATH_BASED_RULES)
should distinguish between abstract and instantiable rules.

I guess a workaround would be to change a file in this branch that does not belong to the rules folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions