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

False positive for overridden_super_call #1360

Closed
jdmarshall90 opened this issue Mar 16, 2017 · 1 comment
Closed

False positive for overridden_super_call #1360

jdmarshall90 opened this issue Mar 16, 2017 · 1 comment
Labels
duplicate Issues that already exist in other terms.

Comments

@jdmarshall90
Copy link

class MyView: UIView {
    override func updateConstraints() {
        defer { super.updateConstraints() }
        
        guard condition == true else { return }

        // add constraints ...
    }
}

Or

class MyVC: UIViewController {
    override func viewDidLoad() {
        defer { super.viewDidLoad() }
    }
}

Both trigger overridden_super_call.

@marcelofabri
Copy link
Collaborator

Duplicate of #1301.

@marcelofabri marcelofabri added the duplicate Issues that already exist in other terms. label Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues that already exist in other terms.
Projects
None yet
Development

No branches or pull requests

2 participants