Issue #16435: introduce UnusedLocalMethodCheck (RSPEC-S1144)#16435
Issue #16435: introduce UnusedLocalMethodCheck (RSPEC-S1144)#16435Pankraz76 wants to merge 1 commit intocheckstyle:masterfrom
UnusedLocalMethodCheck (RSPEC-S1144)#16435Conversation
4f6a252 to
f9b73bd
Compare
RSPEC-S1144: UnusedLocalMethodCheckRSPEC-S1144 Add UnusedLocalMethodCheck
|
is this any good? |
romani
left a comment
There was a problem hiding this comment.
Direction is good, but CI should be green
b24a8a0 to
015b919
Compare
RSPEC-S1144 Add UnusedLocalMethodCheckUnusedLocalMethodCheck
UnusedLocalMethodCheckUnusedLocalMethodCheck
| unused.catch.parameter=Неиспользуемый параметр catch ''{0}'' должен быть безымянным. | ||
| unused.lambda.parameter=Неиспользуемый лямбда-параметр ''{0}'' должен быть безымянным. | ||
| unused.local.var=Неиспользуемая локальная переменная ''{0}''. | ||
| unused.local.method=Неиспользуемая локальная переменная ''{0}''. |
There was a problem hiding this comment.
mostly its c&p as I could not even encode this locally.
09a718f to
2504d30
Compare
e01d8c5 to
024d8d0
Compare
Pankraz76
left a comment
There was a problem hiding this comment.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:02 min
[INFO] Finished at: 2025-03-02T01:02:41+01:00
[INFO] ------------------------------------------------------------------------
➜ checkstyle git:(UnusedPrivateMethodCheck-pr)
| @@ -0,0 +1,20 @@ | |||
| [*] | |||
There was a problem hiding this comment.
without this is was impossible for me to apply the rules as idk how to outfix them and align them with the IDE out of the box. Thanks
There was a problem hiding this comment.
if you really want to have this file, you need to create new issue, explain all details on what is it for and what are benefits. this will let us to evaluate if we can have it in repo and it will not interfere with others.
We try to be IDE agnostic, as people use a lot of editors and very diffeerent version.
There was a problem hiding this comment.
Yes, it's kind of agnostic as it supports all common editors out of the box.
It's a good thing to extract things into a separate PR, but I need to be able to work on the code without having to configure like crazy. I will delete it right before merging. There are still some issues left.
600f71f to
8828f6b
Compare
9ae74f1 to
58d8547
Compare
b9382f3 to
9e35bff
Compare
48649f9 to
266514c
Compare
| href="checks/coding/unusedcatchparametershouldbeunnamed.html"/> | ||
| <item name="UnusedLambdaParameterShouldBeUnnamed" | ||
| href="checks/coding/unusedlambdaparametershouldbeunnamed.html"/> | ||
| <item name="UnusedLocalMethod" href="checks/coding/unusedlocalmethod.html"/> |
266514c to
3c1b39d
Compare
6aa93a1 to
6d2452f
Compare
c50cd91 to
77b569d
Compare
UnusedLocalMethodCheckUnusedLocalMethodCheck (RSPEC-S1144)
77b569d to
442b9d2
Compare
UnusedLocalMethodCheck (RSPEC-S1144)UnusedLocalMethodCheck (RSPEC-S1144)
442b9d2 to
aa01fe1
Compare
aa01fe1 to
5010eae
Compare
Issue #16435: introduce
UnusedLocalMethodCheck(RSPEC-S1144)