Danny Mösch
Danny Mösch
Seems to be a good idea to add an option to the rule that makes it treat types only used in previews as unused.
This should be a pretty simple rule to implement. However, it's probably also not a big deal to fix this only as soon as the Swift 6 compiler complains.
The thing is that SwiftLint doesn't know that `extension Animal` is an extension of a protocol as it works only on the syntax level. I wonder, though, why you think...
@swiftty, sorry for being too late with my review here. Parts of your PR had already been fixed by other measures or required more extensive refactoring. Thank you nevertheless for...
This seems to be a SourceKit issue, see https://github.com/swiftlang/swift/issues/66666.
I think this is a matter of taste. Which style is "good" and which is "bad" is subjective. For instance, people might like to omit types wherever possible, so they...