-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
VariableDeclarationUsageDistanceCheck doesn't handle method definition properly #13038
Labels
Comments
pymoura
added a commit
to pymoura/checkstyle
that referenced
this issue
May 15, 2023
pymoura
added a commit
to pymoura/checkstyle
that referenced
this issue
May 15, 2023
pymoura
added a commit
to pymoura/checkstyle
that referenced
this issue
May 15, 2023
JAZwielich
pushed a commit
to pymoura/checkstyle
that referenced
this issue
May 15, 2023
…en method in VariableDeclarationUsageDistaceCheck
pymoura
added a commit
to pymoura/checkstyle
that referenced
this issue
May 15, 2023
…en method in VariableDeclarationUsageDistaceCheck
pymoura
added a commit
to pymoura/checkstyle
that referenced
this issue
May 20, 2023
…eDistanceBetweenScopes()
pymoura
added a commit
to pymoura/checkstyle
that referenced
this issue
May 20, 2023
almost done update is at #13065 , everyone in web is welcome to reuse and finish |
I'm on it. Will try to solve it within this week. Thanks. 😃 |
jxr98
added a commit
to jxr98/checkstyle
that referenced
this issue
Mar 10, 2024
…ableDeclarationUsageDistanceCheck
jxr98
added a commit
to jxr98/checkstyle
that referenced
this issue
Mar 10, 2024
…ableDeclarationUsageDistanceCheck
jxr98
added a commit
to jxr98/checkstyle
that referenced
this issue
Mar 17, 2024
…ableDeclarationUsageDistanceCheck
jxr98
added a commit
to jxr98/checkstyle
that referenced
this issue
Apr 1, 2024
…ableDeclarationUsageDistanceCheck
jxr98
added a commit
to jxr98/checkstyle
that referenced
this issue
Apr 1, 2024
…ableDeclarationUsageDistanceCheck
jxr98
added a commit
to jxr98/checkstyle
that referenced
this issue
Apr 2, 2024
…ableDeclarationUsageDistanceCheck
MohanadKh03
pushed a commit
to MohanadKh03/checkstyle
that referenced
this issue
Dec 12, 2024
…ableDeclarationUsageDistanceCheck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have read check documentation: https://checkstyle.org/config_coding.html#VariableDeclarationUsageDistance
I have downloaded the latest checkstyle from: https://checkstyle.org/cmdline.html#Download_and_Run
I have executed the cli and showed it below.
For Windows users, please use
type
instead ofcat
and runin place of the last 2 commands above.
The distance should be 1. This three were caused by generic type which is
<T>
, parameter type in the method signature andthrows
. I think the correct distance one should be caused by the expression in the if condition.The text was updated successfully, but these errors were encountered: