acanda / eclipse-pmd

eclipse-pmd has been moved to
https://github.com/eclipse-pmd/eclipse-pmd
Other
21 stars 10 forks source link

Bug: After importing an exising project, no more PMD checks were performed #65

Closed bohni closed 5 years ago

bohni commented 5 years ago

I imported a Maven project in Eclipse (Import > Maven > Exisiting Maven Projects) and enabled the PMD plugin. Then I choosed a ruleset in project folder (src/main/config/pmd/ruleset.xml). -> All works fine.

I added plugin-config-file (#7) .eclipse-pmd to source control (Git).

My team members cloned the repository and imported the Maven project in Eclipse.

PMd checks are not performed, although PMD is enabled in project properties and the ruleset is listed and activated.

If we remove the ruleset (Apply and Close) and re-add it (Apply and Close), the checks are performed and violations are displayed again.

acanda commented 5 years ago

Do you also add .project to git? Because without this file the project will not have the nature ch.acanda.eclipse.pmd.builder.PMDNature and without this nature the PMD plugin will not be activated for that project.

bohni commented 5 years ago

No, I haven't added .project. Didn't think of PMDNature. Thanks.