-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What problem are you trying to solve?
- Remove unnused parameter in ManifestLayerArchiveFactory spring-projects/spring-boot#47694
- https://errorprone.info/bugpattern/UnusedVariable
It seems this one the missing in the "gang of four" handling all unused stuff.
- https://docs.openrewrite.org/recipes/staticanalysis/removeunusedprivatemethods
- https://docs.openrewrite.org/recipes/staticanalysis/removeunusedlocalvariables
- https://docs.openrewrite.org/recipes/staticanalysis/removeunusedprivatefields
Checking into localvars and fields it seems parameters are not taken care yet.
It should simply remove as happy path. Maybe some hybrid mode via opt in switch would help to keep public api stable by changing the name to unused to pass inspection and dont make a breaking change on top lvl.
Describe the solution you'd like
Have you considered any alternatives or workarounds?
Additional context
Are you interested in contributing this feature to OpenRewrite?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
No status