-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Apply pmd to airbyte-config #13003
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
Apply pmd to airbyte-config #13003
Conversation
To be clear, this PR applies the PMD changes to the airbyte-config subproject since I was originally going to split up tickets to apply the rules one sub-project at a time. Instead, I've switched it so that we'll apply rules one ruleset at at time, but since I already did the work for airbyte-config I figured I should keep that one. |
@alovew I didn't see this in the |
@jdpgrailsdev the connectors exclusion is added as an exclude-pattern in rules.xml |
@alovew Ah...thanks. We may want to move that into the build.gradle and use Gradle's support to filter out classes before it ever feeds them to PMD. My thought is that when we need to add/remove excludes, it will probably be across all of the tools, not just PMD, so having the excludes all in the same file (build.gradle), though spread out, would be easier to find. Not necessary for this PR, as we can do it when we add the next module to PMD, etc. |
@jdpgrailsdev ah I see, yeah that's a good point, we should definitely change it to excluding that way at some point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Apply pmd to airbyte-config, exclude rules for now
What
How to Review
Adding the plugin & creating rules for it:
Fixing rule violations for airbyte-config: