MINOR: Make Checkstyle more strict, restore global code quality checks to 2018#15367
MINOR: Make Checkstyle more strict, restore global code quality checks to 2018#15367gharris1727 wants to merge 31 commits intoapache:trunkfrom
Conversation
5b34f3b to
d066773
Compare
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
d066773 to
1e25705
Compare
|
I realized that it was a bit silly both manually auditing these, and only fixing the Connect ones. I've instead addressed all of the unused suppressions by building a little audit script. It finds suppressions which:
It's a rough-and-ready script, and doesn't handle the more powerful regexes in the suppressions file, only the basic ones composed of a single group. There are carve outs for the powerful regex hardcoded-in that prevent them from emitting spurious errors. I'll do my best to keep this rebased, but I would appreciate a quick review as people are currently adding new suppressions while this is open :) |
1e25705 to
b1b6a5a
Compare
…ions are up-to-date.
b1b6a5a to
e8787ab
Compare
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Signed-off-by: Greg Harris <greg.harris@aiven.io>
|
While I can sorta keep up with the stream of merge conflicts in this one PR, I realize now that completely rewriting nearly every line in suppressions.xml is going to generate a ton of merge conflicts for everyone else. This might to lead to build breakages, so I'm hesitating on merging this. I'm if i should merge this as-is, close it un-merged, or scale it back to just the changes in checkstyle.xml (lowering the limits). |
|
This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please ask a committer for review. If the PR has merge conflicts, please update it with the latest from trunk (or appropriate release branch) If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
The connect suppressions are more permissive than necessary, because suppressions were added to the file and then not later removed. Most notably:
Recently PRs have been relaxing the global checkstyle limits instead of adding suppressions:
I noticed this lead to the DistributedHerder no longer needing a MethodLength suppression. While the heuristics are arbitrary, in the interest in preventing the "code quality ratchet" from slipping, I reverted those changes and added the necessary suppressions.
Committer Checklist (excluded from commit message)