Sync checkstyle config with upstream google_checks.xml - #8969
Conversation
61c9bd5 to
99ce17f
Compare
|
@Gianluca Graziadei You started this one: #8585 |
|
Hi @sercuzz8, thanks for your effort and for driving this initiative!
That said, fixing these rules manually module by module can become quite tedious. I want to make sure your time and effort deliver the highest possible value to both you and the project. Either way, it's your call. Once we resolve the module warnings, we can consider aligning our checkstyle rules with the upstream Google manifest. When you're ready for that step, please open a proposal thread on dev@ first so we can gather community consensus. What do you think? |
|
Hello @GGraziadei, |
|
I agree with @reiabreu about the python change, besides that LGTM |
99ce17f to
41f3c8f
Compare
Same fix as the earlier BoxComments cleanup: replace box-border comments with plain single-line comments in files that hadn't been touched yet.
41f3c8f to
f843472
Compare
|
Update: py change was uploaded in a different PR. Branch for this PR has been rebased with master |
|
@sercuzz8 @GGraziadei just touching base on this one. |
|
Think we can go with it but might need a rebase to avoid breaing the build after the merge marathon today. |
GGraziadei
left a comment
There was a problem hiding this comment.
Hi, LGTM!
I’d just recommend merging upstream/master beforehand to make sure that any changes in the meantime don’t cause the checkstyle build to fail.
Purpose
Update
storm_checkstyle.xmlto follow Google conventionsgoogle_checks.xmlThere is no strong rationale but I saw it was originally used as a base.
Changes:
OperatorWrapintoOperatorWrapNL/OperatorWrapEOLso lambdas get upstream's dedicated EOL wrap rule.BoxCommentsvariant ofTodoComment, catching box-like repetitive comment banners (e.g.// ====...).IndentationChecksuppression regex to upstream's anchored form.Not in Google checkstyle:
NewlineAtEndOfFileto follow POSIX's line definition.Tests and Implementation
mvn -pl storm-checkstyle install -DskipTeststo rebuild the shared ruleset artifact.mvn validateacross the full reactor (OK withBUILD SUCCESSor0 Checkstyle violations/ KO warranted code correction on interested lines until OK).