[Experimental] Add rewrite
support for RemoveUnusedPrivateMethods
& RemoveUnusedImports
#20219
+80
−214
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
refs:
rewrite
support forRemoveUnusedPrivateMethods
&RemoveUnusedImports
opensearch-project/OpenSearch#18791The code seems to be out of sync considering large changes occurred when actually applying the config/convention:
(Assuming the version bump alone did not make these changes in the headers)
Also assuming that Java files currently have no header check besides Checkstyle. It seems considerable to have Spot config in one place, giving it Separation of Concerns (SOC) and Single Source of Truth/Single Point of Truth (SSOT/SPOT) as well. The file, considering it's over 2k LOC, is complex and hard to handle.
Doing this infrastructure topic repeatedly, I can tell that other projects have simpler configurations, despite possibly having even more in total, forcing them to adopt such a dedicated approach. Still, it's nice to see this project having a good foundation for good developer experience.