-
Notifications
You must be signed in to change notification settings - Fork 161
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
Automatically configure checkstyle plugin based on gradle build #439
Comments
It's a fair request, and probably a useful feature for many people, but it's unlikely to happen, I fear. I haven't used the plugin myself for years, and have just been keeping the lights on. As such, I'm very wary of writing Maven/Gradle/etc integrations and expanding the scope of the plugin even further - Gradle definitely being the scarier option, given the joy of having to parse Kotlin/Groovy, even without supporting all the variants such as Android. |
@jshiell I appreciate your response nonetheless. |
If this would be picked up at some point then it should probably use the tooling-api instead of parsing code it self. |
@jshiell, are you interested in having it implemented? I can try to submit a PR. |
@remal contributions are always welcome; the key thing would be maintenance. For example, the code-style import was a contribution, and has over the years produced a number of bugs that the contributor never resolved, and have remained exceedingly low priority for myself. But it's clearly a feature people want, so if you're willing to stay engaged and not just PR-and-run then I'd certainly be open to merging it in! |
I believe this is essentially the gradle counterpart for #107.
It'd be great if the plugin can honor the existing checkstyle settings in the project gradle build files, at the minimal the checkstyle config files and checkstyle cache.
E.g., configure checkstyle once it recognizes something like the following in the project gradle.
And the android gradle variant (android builds use slightly different config)
The text was updated successfully, but these errors were encountered: