Redundant imports often lead to the confusion about the responsibilities of declarations within a file. I don't know any reasons for why anyone would want to have import declarations of the module they don't use.
I didn't find any
Would trigger:
import UIKit
class Foo { }
Wouldn't trigger:
import UIKit
class Foo { let bar = UIView() }
No
Such rule should be enabled by default
This would require SwiftLint to run in a "compiled mode" as I've discussed before.
@jpsim is it something you don鈥檛 consider for implementation?
@jpsim can we close this as https://github.com/realm/SwiftLint/pull/2381 was merged?
Nice find, yes! 8fd15b0b
Hey - looks like you forgot to add a T:* label - could you please add one?
Most helpful comment
Nice find, yes! 8fd15b0b