PMD-Intellij icon indicating copy to clipboard operation
PMD-Intellij copied to clipboard

[RFE] Custom rulesets with relative path

Open lapo-luchini opened this issue 6 years ago • 1 comments

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.

lapo-luchini avatar Jul 14 '20 11:07 lapo-luchini

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>

noelmccrory avatar Feb 24 '22 14:02 noelmccrory