Issue #16421: Local variables should not be declared and then immediately returned or thrown S1488#16488
Issue #16421: Local variables should not be declared and then immediately returned or thrown S1488#16488Pankraz76 wants to merge 2 commits intocheckstyle:masterfrom
S1488#16488Conversation
|
first draw to check if this is any good |
c5915d5 to
7418cfa
Compare
| echo "Checkout target sources ..." | ||
| checkout_from "https://github.com/pmd/build-tools.git" | ||
| # checkout_from "https://github.com/pmd/build-tools.git" | ||
| checkout_from "https://github.com/kkoutsilis/build-tools.git" |
There was a problem hiding this comment.
remove all unrelated changes from your PR, too much files are changed.
There was a problem hiding this comment.
i only see this right now im wondering why. Thanks
There was a problem hiding this comment.
you did something weird on your local , and you pulled somebody else changes to your commit.
just redo commit.
There was a problem hiding this comment.
lets complete as least this checker then, if not unused method check is possible. Check return and throw is possible. @romani
InlineVariableCheck - Local variables should not be declared and then immediately returned or thrown - (RSPEC-S1488)
InlineVariableCheck - Local variables should not be declared and then immediately returned or thrown - (RSPEC-S1488)S1488: Local variables should not be declared and then immediately returned or thrown
|
WIP |
S1488: Local variables should not be declared and then immediately returned or thrownS1488
c26d836 to
c969698
Compare
870df94 to
e096e2a
Compare
…en immediately returned or thrown S1488
e096e2a to
48c26f1
Compare
…en immediately returned or thrown S1488
|
you operating in danger zone. examples on such projects: https://checkstyle.sourceforge.io/#Additional_Checks |
|
consider you dont want contribution and clean code, as its working therefore found several violations. |
issue: #16421
PoC:
