eclipse-cs icon indicating copy to clipboard operation
eclipse-cs copied to clipboard

Possible to set a global file set?

Open io7m opened this issue 7 years ago • 3 comments

Hello.

I have rather a large number of projects, and all of them are multi-module Maven projects. For every single module, I have to go into the Checkstyle configuration and set:

^src/main/java/.*(\.java)$

... as the file set for Checkstyle. Scanning my projects directory, this means that I'm going to have to type the above 638 times. :grimacing:

Any chance of setting this file set globally somewhere rather than having to set it for every project?

io7m avatar Mar 25 '18 10:03 io7m

I realize that I could copy the .checkstyle file everywhere with a shell script, but that still means that there are 638 locations stating the same thing.

io7m avatar Mar 25 '18 10:03 io7m

@io7m are you familiar with https://github.com/m2e-code-quality/m2e-code-quality ? It's an Eclipse plugin which configures the Eclipse Checkstyle plugin based on the CS config read from POM. We use it over in https://github.com/vorburger/opendaylight-eclipse-setup and it works well for us, solving the problem you are after here - I think.

vorburger avatar Mar 25 '18 16:03 vorburger

I haven't seen that before, no. I'll take a look at it. Thanks!

io7m avatar Mar 25 '18 16:03 io7m