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
Issue #14765: fix OverloadMethodsDeclarationOrderCheck #14766
Conversation
GitHub, generate site |
GitHub, generate report |
Report generation failed on phase "make_report", |
GitHub, generate report |
Report generation failed on phase "make_report", |
GitHub, generate report |
The website & report looks good to me. @romani can you please review the PR? |
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.
All overloaded methods should be placed next to each other. Placing non-overloaded methods in between overloaded methods with the same type is a violation. Previous overloaded method located at line '1,234'.
Question to maintainers: Should we change message ?
@Zopsss , this looks like false positive - https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/ccc4bf1_2024074227/reports/diff/apache-struts/index.html#A5 , if that is true, please fix and regerate report and check report yourself first.
item:
...s/com/puppycrawl/tools/checkstyle/checks/coding/overloadmethodsdeclarationorder/Example2.txt
Outdated
Show resolved
Hide resolved
8a7c6d5
to
44b86fb
Compare
GitHub, generate website |
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.
Ok to merge.
GitHub, generate report |
...java/com/puppycrawl/tools/checkstyle/checks/coding/OverloadMethodsDeclarationOrderCheck.java
Outdated
Show resolved
Hide resolved
...tyle/checks/coding/overloadmethodsdeclarationorder/InputOverloadMethodsDeclarationOrder.java
Outdated
Show resolved
Hide resolved
...s/com/puppycrawl/tools/checkstyle/checks/coding/overloadmethodsdeclarationorder/Example2.txt
Outdated
Show resolved
Hide resolved
...java/com/puppycrawl/tools/checkstyle/checks/coding/OverloadMethodsDeclarationOrderCheck.java
Show resolved
Hide resolved
@romani @nrmancuso @Zopsss
Shouldn't this verbiage be updated to something like |
I guess following message will be a better option as we ignore the comments in this check:
|
Why linkcheck-plugin is failing? Even though I changed only the input file? |
Failed CI is restarted |
Thanks now all CIs are passing. I've made the changes according to your suggestions, is there anything else left to do? @rnveach |
No the check does not care about the return type, it only cares about the method name.
Can it be something like this?
This message is shorter than the current error message and also simple & easy to understand. |
@Zopsss We have come to a decision on new message. Original message is New message is we trim message to just Context of the 2nd sentence coming into existence: It doesn't look like we will revert that issue with the proposed change. Original confusion was on the word "split" and we still don't use that in new change. |
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.
Last change.
...s/com/puppycrawl/tools/checkstyle/checks/coding/overloadmethodsdeclarationorder/Example1.txt
Outdated
Show resolved
Hide resolved
I am good with code and regression besides my last item. |
...s/com/puppycrawl/tools/checkstyle/checks/coding/overloadmethodsdeclarationorder/Example1.txt
Outdated
Show resolved
Hide resolved
8dabbb4
to
28743fe
Compare
My IntelliJ automatically added unicodes to the translated messages.. fixing this asap. Idk why this happened. So sorry for this |
Updated the xdoc examples and resolved the failing CIs. PR is now ready to be merged. Sorry it took a little longer, my IntelliJ was not working properly idk why that happened. |
@Zopsss , not just IntelliJ, IDEs in general are not automatically configured to detect these. |
Okkay got it! Thanks for the help. |
@nrmancuso can you merge the PR please? Other maintainers have approved the changes. |
Good stuff @Zopsss ! |
Issue #14765
Diff Regression config: https://gist.githubusercontent.com/Zopsss/80b98438b46ad1111cf47c520e8ea669/raw/d98d1c801e2c5abd3e6e8834b749dbc95769db53/OverloadMethodsDeclarationOrderCheck.xml
Diff Regression projects: https://gist.githubusercontent.com/Zopsss/22adadb570e4deb95296917244c580b3/raw/29ea756eada8915637b76678db4f46048c198808/projects-to-test-on-for-github-action.properties