checkstyle-idea icon indicating copy to clipboard operation
checkstyle-idea copied to clipboard

Apply Checkstyle Plugin settings globally to all projects

Open IgorKomissarov opened this issue 2 years ago • 2 comments

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.

IgorKomissarov avatar Mar 11 '22 15:03 IgorKomissarov

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 avatar Mar 11 '22 15:03 jshiell

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

jshiell avatar Mar 13 '22 16:03 jshiell