-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-39946: [Java] Bump com.puppycrawl.tools:checkstyle from 8.19 to 8.29 #39694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@github-actions crossbow submit java |
java/dev/checkstyle/checkstyle.xml
Outdated
| @@ -223,14 +224,14 @@ | |||
| <module name="JavadocMethod"> | |||
| <property name="scope" value="public"/> | |||
| <property name="allowMissingParamTags" value="true"/> | |||
| <property name="allowMissingThrowsTags" value="true"/> | |||
| <!-- <property name="allowMissingThrowsTags" value="true"/>--> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove these once CIs are verified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ready or not ready? Please keep PRs in draft until they are ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been on draft. Sorry about the mistake.
|
Revision: 671b530eceb7b629d979b09306faa9637fa0127e Submitted crossbow builds: ursacomputing/crossbow @ actions-dd3d152807 |
|
@github-actions crossbow submit java |
|
Not sure if there is such a line though: |
|
Revision: 671b530eceb7b629d979b09306faa9637fa0127e Submitted crossbow builds: ursacomputing/crossbow @ actions-7d4c086df1 |
671b530 to
e07b445
Compare
|
@github-actions crossbow submit java |
|
Revision: e07b4453c3d2639f453c46b50c4664b132f7b977 Submitted crossbow builds: ursacomputing/crossbow @ actions-5f3cb7c61a |
e07b445 to
3a74b4d
Compare
|
@github-actions crossbow submit java |
|
Revision: 3a74b4dcd16894b2599e830e114590665bb43a94 Submitted crossbow builds: ursacomputing/crossbow @ actions-4f8459f26a |
|
@lidavidm the file noted in the error seems to be generated https://github.com/ursacomputing/crossbow/actions/runs/7622553317/job/20760815369#step:7:35295 |
|
Yes |
java/dev/checkstyle/checkstyle.xml
Outdated
| <property name="allowMissingThrowsTags" value="true"/> | ||
| <property name="allowMissingReturnTag" value="true"/> | ||
| <property name="minLineCount" value="2"/> | ||
| <property name="allowedAnnotations" value="Override, Test"/> | ||
| <property name="allowThrowsTagsForSubclasses" value="true"/> | ||
| <!-- This seems partially broken under JDK >= 9. --> | ||
| <property name="suppressLoadErrors" value="true"/> | ||
| <property name="ignoreMethodNamesRegex" value="main"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these checks no longer supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It showed up errors when running with those configs. I didn't log them, but I can reproduce the errors and post here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let's just take a look and make sure - I don't care too much either way but perhaps some of these will still be useful even after google-java-format (since many of these seem more like lint things)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I agree, let me log one by one here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Listing compile errors for the removed attributes
<property name="allowMissingThrowsTags" value="true"/>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (validate) on project arrow-maven-plugins: Failed during checkstyle configuration: cannot initialize module TreeWalker - cannot initialize module JavadocMethod - Property 'allowMissingThrowsTags' does not exist, please check the documentation -> [Help 1]<property name="minLineCount" value="2"/>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (validate) on project arrow-maven-plugins: Failed during checkstyle configuration: cannot initialize module TreeWalker - cannot initialize module JavadocMethod - Property 'minLineCount' does not exist, please check the documentation -> [Help 1]<property name="allowThrowsTagsForSubclasses" value="true"/>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (validate) on project arrow-maven-plugins: Failed during checkstyle configuration: cannot initialize module TreeWalker - cannot initialize module JavadocMethod - Property 'allowThrowsTagsForSubclasses' does not exist, please check the documentation -> [Help 1]<property name="suppressLoadErrors" value="true"/>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (validate) on project arrow-maven-plugins: Failed during checkstyle configuration: cannot initialize module TreeWalker - cannot initialize module JavadocMethod - Property 'suppressLoadErrors' does not exist, please check the documentation -> [Help 1]<property name="ignoreMethodNamesRegex" value="main"/>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (validate) on project arrow-maven-plugins: Failed during checkstyle configuration: cannot initialize module TreeWalker - cannot initialize module JavadocMethod - Property 'ignoreMethodNamesRegex' does not exist, please check the documentation -> [Help 1]There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lidavidm these are the errors I saw when each of these properties were used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/checkstyle/checkstyle/issues/7329
- allowMissingThrowsTags, allowThrowsTagsForSubclasses, suppressLoadErrors are now basically the default
https://github.com/checkstyle/checkstyle/issues/6703
- minLineCount and ignoreMethodNamesRegex were moved to a new check called
MissingJavadocMethodCheck, can you configure that to behave like our old one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. Let me check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lidavidm I added the MissingJavadocMethodCheck
Latest version: https://checkstyle.sourceforge.io/version/8.29/config_javadoc.html#JavadocMethod
Previous version: https://checkstyle.sourceforge.io/version/8.19/config_javadoc.html#JavadocMethod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allowMissingThrowsTags, allowThrowsTagsForSubclasses, suppressLoadErrors are now basically the default
These are not explicit properties in 8.29 but were in 8.19 but I couldn't find whether they are the defaults in 8.29.
0ded732 to
ca838fb
Compare
|
@github-actions crossbow submit java |
|
Revision: ca838fb Submitted crossbow builds: ursacomputing/crossbow @ actions-d6ad59a58d |
|
|
|
After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit cb5c109. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 2 possible false positives for unstable benchmarks that are known to sometimes produce them. |
… to 8.29 (apache#39694) ### Rationale for this change This PR was created in place of apache#39202 to integrate the `puppycrawl.tools.checkstyle` upgrade. ### What changes are included in this PR? Style changes in Java classes and core changes to the style format itself. Some unsupported attributes have been removed. And some attributes have been reorganized upon the provided guidelines in the documentation. ### Are these changes tested? N/A Tested by existing checkstyle guideline. ### Are there any user-facing changes? No * Closes: apache#39946 Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com> Co-authored-by: vibhatha <vibhatha@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
… to 8.29 (apache#39694) ### Rationale for this change This PR was created in place of apache#39202 to integrate the `puppycrawl.tools.checkstyle` upgrade. ### What changes are included in this PR? Style changes in Java classes and core changes to the style format itself. Some unsupported attributes have been removed. And some attributes have been reorganized upon the provided guidelines in the documentation. ### Are these changes tested? N/A Tested by existing checkstyle guideline. ### Are there any user-facing changes? No * Closes: apache#39946 Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com> Co-authored-by: vibhatha <vibhatha@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Rationale for this change
This PR was created in place of #39202 to integrate the
puppycrawl.tools.checkstyleupgrade.What changes are included in this PR?
Style changes in Java classes and core changes to the style format itself.
Some unsupported attributes have been removed. And some attributes have
been reorganized upon the provided guidelines in the documentation.
Are these changes tested?
N/A
Tested by existing checkstyle guideline.
Are there any user-facing changes?
No