eclipse-cs
eclipse-cs copied to clipboard
Possible to set a global file set?
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?
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 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.
I haven't seen that before, no. I'll take a look at it. Thanks!