-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
skipEnhancedForLoopVariable property is added in ModifiedControlVaria… #1228
Conversation
please do me favour, reuse getAcceptableTokens in all related methods.
please move that method below Override's, and after first usage of it as close as possible. Please use that rule in future. Do not throw methods at any place.
Do one return point from method !!
I do not like that IF in that method, please try to move it to "public void leaveToken(DetailAST ast) {" at we know where we are(EnchantedFor or just FOR) at that level already. |
Done |
What is a reason of calling method if you go out of by condition almost right away, if you move "shouldCheckEnhancedForLoopVariable" to SWITCH , it will be much better to read an algorithm of Check. Please try.
|
3f833d9
to
1b406e2
Compare
0 ) It is good idea to take out If that is ok, then fine. But my solution is to change the method Before: After: With skipEnhancedForVariable: true (two for each variable is skipped) |
Please keep typing "done" for each. I had so many cases when people skip my point and that the only way for contributors to recheck themself.
that is private method, do not hesitate to refactor it.
in HTML report you have "Files" group , are you sure that you have the latest checkstyle-tester ? (I removed it form report a while ago) reports are good, please confirm that there is no Exceptions base on launch over all projects in property file, see README for "./launch.sh -Dcheckstyle.config.location=all-checks-test-for-exceptions.xml" |
ok, I have made changes accordingly. It is possible that I am using older version of checkstyle-tester. This option is not available in older version I think. |
https://github.com/checkstyle/contribution/tree/master/checkstyle-tester |
please recheck your properties file to be sure that all projects are activated , I expect about 41K java file to be tested, you have only 1691 files. |
@romani I think point is clear from this report. it is checking about over 27K files. No Errors |
merged as FF |
…bleCheck. solves #1015