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

Possible to set a global file set? #60

Open
io7m opened this issue Mar 25, 2018 · 3 comments
Open

Possible to set a global file set? #60

io7m opened this issue Mar 25, 2018 · 3 comments

Comments

@io7m
Copy link

io7m commented Mar 25, 2018

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. 😬

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

@io7m
Copy link
Author

io7m commented Mar 25, 2018

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.

@vorburger
Copy link
Contributor

@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.

@io7m
Copy link
Author

io7m commented Mar 25, 2018

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

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

2 participants