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

Apply Checkstyle Plugin settings globally to all projects #554

Closed
IgorKomissarov opened this issue Mar 11, 2022 · 3 comments
Closed

Apply Checkstyle Plugin settings globally to all projects #554

IgorKomissarov opened this issue Mar 11, 2022 · 3 comments

Comments

@IgorKomissarov
Copy link

Checkstyle plugin settings are project specific in IDEA: if I want to use a different checkstyle version and use a custom configuration file I have to repeat this set up in every project that I have. Is there a way to apply plugin settings globally?

I know about an option to set up settings for all new projects. But I want to apply it to already existing ones which I have plenty.

@jshiell
Copy link
Owner

jshiell commented Mar 11, 2022

At present, there's no option to do so.

IDEA's API does offer the ability to do application-level configuration (we use it for the update alert) but there's no Checkstyle configuration stored at that level at present. Any change to do so would require some thought, in particular as to what belongs where, how this impacts existing projects, and especially how this impacts shared projects (which won't share application-level config).

So it's not a trivial thing to add I fear, and not a feature I'm planning to add at present. Sorry.

@jshiell
Copy link
Owner

jshiell commented Mar 13, 2022

A thought ... as a hack, would copying the project settings from project to project (i.e. .idea/checkstyle-idea.xml) help?

@gabryellr
Copy link

A thought ... as a hack, would copying the project settings from project to project (i.e. .idea/checkstyle-idea.xml) help?

I tried it, it works like a charm :) thank you

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

No branches or pull requests

3 participants