Commit Graph

3 Commits

Author SHA1 Message Date
Danny Mösch 40bee88132 Respect configuration in unneeded_override rule's rewriter (#5579) 2024-05-15 14:16:01 -04:00
Danny Mösch 9cd47401c0 Ignore functions with default parameters in unneeded_override rule (#5356) 2023-11-16 22:44:10 +01:00
Keith Smiley b3189aa2d7 Add unneeded_override rule (#5139)
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.
2023-07-26 15:36:30 -04:00