Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export PMD configuration for use on different installations #105

Open
DanielLEVY25021961 opened this issue Jun 7, 2019 · 2 comments
Open

Comments

@DanielLEVY25021961
Copy link

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

@adangel adangel changed the title How can I export my PMD PLUGIN RULES CONFIGURATION on different computers How can I export my rules configuration on different computers Jun 11, 2019
@adangel adangel changed the title How can I export my rules configuration on different computers How can I export my rules configuration on different computers? Jun 11, 2019
@adangel
Copy link
Member

adangel commented Jun 11, 2019

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 adangel changed the title How can I export my rules configuration on different computers? Export PMD configuration for use on different installations Jun 11, 2019
@nkavian
Copy link

nkavian commented Aug 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants