Skip to content

[FLINK-38293] Update Checkstyle version and related rules in Kubernetes Operator#1023

Merged
mxm merged 3 commits into
apache:mainfrom
csviri:checkstyle-update
Sep 17, 2025
Merged

[FLINK-38293] Update Checkstyle version and related rules in Kubernetes Operator#1023
mxm merged 3 commits into
apache:mainfrom
csviri:checkstyle-update

Conversation

@csviri

@csviri csviri commented Aug 28, 2025

Copy link
Copy Markdown
Contributor

What is the purpose of the change

Update checkstyle so it supports newer Java language features like text blocks, etc.

Brief change log

Updated checkstyle maven plugin and related rules.

Verifying this change

Run the build, it passes. Try to use a text block in a unit test for exmaple, now passes the build, unlike before.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): yes
  • The public API, i.e., is any changes to the CustomResourceDescriptors: no
  • Core observer or reconciler logic that is regularly executed: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri csviri changed the title Update checkstyle [FLINK-38293] Update Checkstyle version and related rules in Kubernetes Operator Aug 28, 2025
Comment thread tools/maven/checkstyle.xml
Comment thread tools/maven/checkstyle.xml
Comment thread pom.xml Outdated
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri csviri requested review from kaygorodov and mxm September 3, 2025 07:54
Comment thread pom.xml Outdated
<artifactId>checkstyle</artifactId>
<!-- Note: match version with docs/flinkDev/ide_setup.md -->
<version>8.14</version>
<version>10.17.0</version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, what about the above comment:

I don't see such file anymore or mentioning of com.puppycrawl.tools in the docs, it seems to be obsolete and probably should be deleted

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this dependency required? Why such an old version? Latest version is 11.0.1: https://mvnrepository.com/artifact/com.puppycrawl.tools/checkstyle

@csviri csviri Sep 4, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I did not found anything about this in checkstyle docs either so removed it for now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you actually remove it? I still see it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed it now, sorry

@kaygorodov kaygorodov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (not that it counts though). I think you need another look from @mxm

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>

@mxm mxm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test failures are unrelated (see #1029). Normal builds succeed.

@mxm mxm merged commit acaa3e6 into apache:main Sep 17, 2025
7 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants