pmd-eclipse-plugin icon indicating copy to clipboard operation
pmd-eclipse-plugin copied to clipboard

Export PMD configuration for use on different installations

Open DanielLEVY25021961 opened this issue 6 years ago • 2 comments

Hi Everybody, I would like to know How I can export my PMD PLUGIN RULES CONFIGURATION on several computers. Let's assume that we have 3 PC computers with exactly the same JVM, the same version of Eclipse, the same version of PMD plugins, ...

Attached file shows what I call PMD PLUGIN RULES CONFIGURATION : Configuration_des_Regles_PMD

Some rules are activated, others aren't, ...

I would like to find a mean for having exactly the same rules activated in Eclipse on the other computers.

I tried to figure it out by using the button "export the ruleset" : export_ruleset

But I never could import that ruleset in another ECLIPSE and having the same PMD PLUGIN RULES CONFIGURATION.

does anybody have an idea please ?

Best regards Daniel

DanielLEVY25021961 avatar Jun 07 '19 18:06 DanielLEVY25021961

I guess, this functionality is indeed missing. You can try the following workarounds:

  • Delete the rules, that you have not activated. Then export the rule set. The on the other eclipse installation, import the rule set and enable all rules.
  • Exit eclipse. Copy the files ${workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/net.sourceforge.pmd.eclipse.plugin.prefs and ${workspace}/.metadata/.plugins/net.sourceforge.pmd.eclipse.plugin/ruleset.xml manually to the other eclipse installation's workspace. Then start eclipse again.

adangel avatar Jun 11 '19 19:06 adangel

I have the same issue. I'd like to see an importer as well.

nkavian avatar Aug 20 '21 07:08 nkavian