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
FOR_EACH_CLAUSE variable is not declared final #648
Conversation
Please fix |
@Bhavik3 please remove changes from |
Actually, if i remove changes in classpath, it is showing build error for oraclejdk.. |
There are no changes in .classpath that is in master and the build passes fine there. That means something wrong on your side. Could you please investigate? |
I made the same changes as before when everything was fine on previous PR. but, i will look at it after reverting changes in classpath. |
FYI: I need reply "done" or your comment for each of my point. Nothing should be forgotten or skipped. |
1 similar comment
1>> I have removed all links in commit. 2>> UTs: 3>> coverage is 100% for FinalLocalVaribaleCheck now. And, due to stalled build, The build has been terminated. |
commit message should be single line I am waiting your reply on each my point , I see reply only 3 items from 5 |
Thanks for your support. |
please make it "fix for FinalLocalVariableCheck - FOR_EACH_CLAUSE variable is not reported. issue #20" |
1 similar comment
done |
Message for commit should describe update in it, so second commit should be renamed to describe its changes but still have reference to issue. Please keep reply me "done " to each my point. |
done |
no update for Javadoc is NOT acceptable, one day we will generate xdoc from javadoc
Please make a link to JDK specification for "enhanced for-loop", not all Checkstyle users are that smart to understand that term, even I was surprised on how it is named actually.
Pelase make empty line between declarations |
09f8e66
to
44d0513
Compare
I could not find target file to update javadoc in xdocs folder except config_coding.xml DONE DONE |
This is documentation comment (Javadoc) - https://github.com/Bhavik3/checkstyle/blob/44d05139136a7d42b99007a4d21cbe004e39239a/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java#L31 Here should be all information on how to use Check , see example at good javadoc at https://github.com/Bhavik3/checkstyle/blob/44d05139136a7d42b99007a4d21cbe004e39239a/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.java |
DONE |
|
3c6c78a
to
c4fdffe
Compare
|
yes it is for developers and in future for xdoc generation so - please do provide example of enhanced FOR and link to specification. Do not expect that checkstyle is used by well educated users. |
@@ -39,6 +39,19 @@ | |||
* <property name="token" value="VARIABLE_DEF"/> | |||
* </module> | |||
* </pre> | |||
* <p> | |||
* By default, FinalLocalVariableCheck does not check for Enhanced For-Loop Variable. | |||
* To enable it,there is an option called "validateEnhancedForLoopVariable".It takes boolean value. |
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.
add space between .
and It
amke javadoc to looks like: "By default this Check skip final validation on Example: |
@romani |
Good, now apply all changes in javadoc to xdoc, as user read results of xdoc and still do not have tool to generate xdoc from javadoc. |
u mean in config_coding.xml ? |
You have only changes to option, but all changes in javadoc should appear in xml |
DONE |
you did it ! |
...69939c84cd69cd/src/test/resources/com/puppycrawl/tools/checkstyle/coding/InputFinalLocalVariable.java#L134 should be declared final.