You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Given a ruleset, that only contains rules for Java, the pmd-eclipse-plugin executes PMD not only on Java files, but on all resources in the project.
This not only is a performance problem, but this leads also to unrelated errors (e.g. a JavaScript file that cannot be parsed).
Expected Result:
The plugin should detect the applicable file types based on the selected rules. E.g. only *.java rules should be executed.
The command line interface of PMD is doing this already.
Workaround:
Using a file-filter, you can exclude problematic files:
<exclude-pattern>.*\.js</exclude-pattern>
Since the includes are overriding the excludes, you can exclude everything except for java files:
Description: Given a ruleset, that only contains rules for Java, the pmd-eclipse-plugin executes PMD not only on Java files, but on all resources in the project.
This not only is a performance problem, but this leads also to unrelated errors (e.g. a JavaScript file that cannot be parsed).
Expected Result:
The plugin should detect the applicable file types based on the selected rules. E.g. only *.java rules should be executed.
The command line interface of PMD is doing this already.
Workaround:
Using a file-filter, you can exclude problematic files:
Since the includes are overriding the excludes, you can exclude everything except for java files:
Documentation: https://pmd.github.io/pmd-6.11.0/pmd_userdocs_making_rulesets.html#filtering-the-processed-files
This can also be configured via Window, Preferences, PMD, File Filter:
The text was updated successfully, but these errors were encountered: