Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unneeded_override rule #5139

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Add unneeded_override rule #5139

merged 1 commit into from
Jul 26, 2023

Commits on Jul 26, 2023

  1. Add unneeded_override rule

    This rule flags functions where the only thing they do is call their
    super function and therefore could be omitted. For example:
    
    ```swift
    override func foo() {
        super.foo()
    }
    ```
    
    This can get pretty complex since there are a lot of slight variations
    the subclasses' functions can call the superclasses' functions with, but
    this covers many of the cases. Ideally this would handle variable
    overrides too but it doesn't currently.
    keith committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    171f125 View commit details
    Browse the repository at this point in the history