Skip to content

Add S1185 recipe: Remove methods that only call super#837

Open
timtebeek wants to merge 2 commits intomainfrom
tim/remove-useless-super-call
Open

Add S1185 recipe: Remove methods that only call super#837
timtebeek wants to merge 2 commits intomainfrom
tim/remove-useless-super-call

Conversation

@timtebeek
Copy link
Member

Implements RSPEC-S1185 to detect and remove methods that override a parent method but only delegate to super with the same arguments. Methods are safe to remove only if they have no semantic annotations, no Javadoc, and don't widen visibility.

Includes 12 comprehensive test cases covering positive and negative scenarios.

Implements RSPEC-S1185 to detect and remove methods that override a parent
method but only delegate to super with the same arguments. Includes 12
comprehensive test cases covering positive and negative scenarios.
Consolidate triple-pass (count params, count args, match) into a single
pass that counts and matches simultaneously.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant