You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "sercuzz8 (via GitHub)" <gi...@apache.org> on 2026/08/04 19:17:54 UTC
[PR] STORM-8585: Sync checkstyle config with upstream google_checks.xml (storm)
sercuzz8 opened a new pull request, #8969:
URL: https://github.com/apache/storm/pull/8969
## Purpose
Update `storm_checkstyle.xml` to follow Google conventions [`google_checks.xml`](https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml)
There is no strong rationale but I saw it was originally used as a [base](https://github.com/apache/storm/commit/88cf6f7b4).
Changes:
- Splits `OperatorWrap` into `OperatorWrapNL`/`OperatorWrapEOL` so lambdas get upstream's dedicated EOL wrap rule.
- Adds the missing `BoxComments` variant of `TodoComment`, catching box-like repetitive comment banners (e.g. `// ====...`).
- Tightens the `IndentationCheck` suppression regex to upstream's anchored form.
* Also added `NewlineAtEndOfFile` to follow [POSIX's line definition](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206).
## Tests and Implementation
1. `mvn -pl storm-checkstyle install -DskipTests` to rebuild the shared ruleset artifact.
1. `mvn validate` across the full reactor (OK with `BUILD SUCCESS` or `0 Checkstyle violations` / KO warranted code correction on interested lines until OK).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "sercuzz8 (via GitHub)" <gi...@apache.org>.
sercuzz8 commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5411884931
Np, I have done another rebase
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] STORM-8585: Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "sigee (via GitHub)" <gi...@apache.org>.
sigee commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5201067419
I agree with @reiabreu about the python change, besides that LGTM
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] STORM-8585: Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "sercuzz8 (via GitHub)" <gi...@apache.org>.
sercuzz8 commented on code in PR #8969:
URL: https://github.com/apache/storm/pull/8969#discussion_r3720980483
##########
bin/storm.py:
##########
@@ -1425,6 +1425,28 @@ def monitor(args):
extrajars=[USER_CONF_DIR, STORM_BIN_DIR])
+def merge_args_preserving_order(sys_args, known_args, unknown_args):
Review Comment:
I did this just because not applying this fix blocked the execution of ```mvn validate``` and ```mvn clean install``` but I agree with this idea.
Just to be sure, can I use the same issue to propose this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] STORM-8585: Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "sercuzz8 (via GitHub)" <gi...@apache.org>.
sercuzz8 commented on code in PR #8969:
URL: https://github.com/apache/storm/pull/8969#discussion_r3720980483
##########
bin/storm.py:
##########
@@ -1425,6 +1425,28 @@ def monitor(args):
extrajars=[USER_CONF_DIR, STORM_BIN_DIR])
+def merge_args_preserving_order(sys_args, known_args, unknown_args):
Review Comment:
I did this just because not applying this fix blocked the execution of ```mvn validate``` and ```mvn clean install``` but I agree with this idea.
Just to be sure, can I use the same issue to propose this?
In any case, thank you for the attention and the advice.\
##########
bin/storm.py:
##########
@@ -1425,6 +1425,28 @@ def monitor(args):
extrajars=[USER_CONF_DIR, STORM_BIN_DIR])
+def merge_args_preserving_order(sys_args, known_args, unknown_args):
Review Comment:
I did this just because not applying this fix blocked the execution of ```mvn validate``` and ```mvn clean install``` but I agree with this idea.
Just to be sure, can I use the same issue to propose this?
In any case, thank you for the attention and the advice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] STORM-8585: Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "sercuzz8 (via GitHub)" <gi...@apache.org>.
sercuzz8 commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5192418729
Hello @GGraziadei,
first of all, thank you for your attention.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] STORM-8585: Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "reiabreu (via GitHub)" <gi...@apache.org>.
reiabreu commented on code in PR #8969:
URL: https://github.com/apache/storm/pull/8969#discussion_r3716772459
##########
bin/storm.py:
##########
@@ -1425,6 +1425,28 @@ def monitor(args):
extrajars=[USER_CONF_DIR, STORM_BIN_DIR])
+def merge_args_preserving_order(sys_args, known_args, unknown_args):
Review Comment:
this does not pertain checkstyle changes. What do you think about putting it in a separate PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "reiabreu (via GitHub)" <gi...@apache.org>.
reiabreu commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5381702104
@sercuzz8 @GGraziadei just touching base on this one.
Are you happy with the status of it so we can proceed with merging?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "rzo1 (via GitHub)" <gi...@apache.org>.
rzo1 merged PR #8969:
URL: https://github.com/apache/storm/pull/8969
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] STORM-8585: Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "GGraziadei (via GitHub)" <gi...@apache.org>.
GGraziadei commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5188175643
Hi @sercuzz8, thanks for your effort and for driving this initiative!
To summarize where we stand on this issue [apache/storm#8585 (comment)](https://github.com/apache/storm/issues/8585#issuecomment-4472473373), @sigee outlined the upgrade steps:
- Steps 1 and 2 (Completed): Bumped Checkstyle and set the non-compliant rules to warning.
- Step 3 (**Current**): Resolve the remaining warnings module by module ( via separate PRs per module to keep code reviews manageable).
- Step 4 move back the warning in errors
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.
With that in mind, what would you think about exploring an automated approach alongside or before this?
For example, configuring a Maven plugin could auto-fix many of these checkstyle warnings across the whole codebase in one go, preventing future technical debt altogether.
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?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "sercuzz8 (via GitHub)" <gi...@apache.org>.
sercuzz8 commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5253717171
Update: py change was uploaded in a different PR. Branch for this PR has been rebased with master
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "rzo1 (via GitHub)" <gi...@apache.org>.
rzo1 commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5381722179
Think we can go with it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "sercuzz8 (via GitHub)" <gi...@apache.org>.
sercuzz8 commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5397947661
Hello,
following this conversation I have rebased the commit with master and I have pushed the changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "rzo1 (via GitHub)" <gi...@apache.org>.
rzo1 commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5406914232
Perhaps one last rebaseĀ @sercuzz8 ? Than we are good to go, imho
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] STORM-8585: Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "reiabreu (via GitHub)" <gi...@apache.org>.
reiabreu commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5185355954
[@Gianluca Graziadei](mailto:graziadei.gianluca@gmail.com) You started this one: https://github.com/apache/storm/issues/8585
I would like to hear your thoughts on this one
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Sync checkstyle config with upstream google_checks.xml (storm)
Posted by "rzo1 (via GitHub)" <gi...@apache.org>.
rzo1 commented on PR #8969:
URL: https://github.com/apache/storm/pull/8969#issuecomment-5449763585
Thx !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@storm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org