POC for CheckStyle 8.42 regression (with 'Unnecessary Parentheses' errors)#10658
POC for CheckStyle 8.42 regression (with 'Unnecessary Parentheses' errors)#10658dejan2609 wants to merge 1 commit intoapache:trunkfrom
Conversation
|
Unfortunately we need zero violations to be enforced. Only in this case we reliability can detect regression. Is it doable ? If team allow violations in mid of iteration, it is fine, at least we will use strict version of code where 0 violation. |
|
Please note that Kafka project (trunk branch, that is) does not declare As I mentioned via previous commit messages I just temporary declared
Done, commit is pushed (property removed). |
notes: you will find following Checkstyle violations/errors: * swarm of false positives for [UnnecessaryParentheses] * around 50 errors for [Indentation] * and just a few of [WhitespaceAround] errors
a39300f to
4675622
Compare
|
Rebased onto trunk and force-pushed (as explained in a conversation/review above). |
|
Note: comment (related to a different PR) was accidentally submitted here and then deleted... sorry for spamming. |
|
(Will be) solved elsewhere and hence closing in favor of #10698 |
|
@dejan2609 , fix for checkstyle/checkstyle#9957 will be released in 2 weeks. |
|
Thanx for info @romani, much appreciated ! |
@romani please note that I intentionally fine-grained this PR to a few commits (with appropriate messages, I hope you will find them useful). Rationale: my intention was to dissect important parts bit-by-bit (let me know in case you want me to change something).
Notable temporary changes:
maxErrorproperty is introduced (just for counting error counting purposes)Indentationis disable via checkstyle.xml (in this contex those errors are not relevant)How to execute CheckStyle gradle tasks:
./gradlew checkstyleMain checkstyleTesthttps://github.com/dejan2609/kafka/blob/apache-kafka-with-checkstyle-8.42/README.md#running-code-quality-checks
CheckStyle gradle configuration / config files:
ℹ️ Note: also related to this Kafka PR: #10656