PMD-Intellij
PMD-Intellij copied to clipboard
[RFE] Custom rulesets with relative path
Each project should have its own custom ruleset (also as used by Gradle), while right now PMD plugin interface only accepts absolute path rulesets… which can lead to confusion and running a project's ruleset on another project's sources.
Another options would be to only show in the dropdown menu custom rulesets from the current project and not all of them from all projects.
Edit .idea/misc.xml and use the $PROJECT_DIR$ variable, e.g.
<component name="PDMPlugin">
<option name="customRuleSets">
<list>
<option value="$PROJECT_DIR$/pmdrulesets.xml" />
</list>
</option>
<option name="options">
<map>
<entry key="Statistics URL" value="" />
<entry key="Target JDK" value="11" />
</map>
</option>
<option name="skipTestSources" value="false" />
</component>