Closed
Description
New Issue Checklist
- Updated SwiftLint to the latest version
- I searched for existing GitHub issues
Rule Request
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.
- Why should this rule be added? Share links to existing discussion about what
the community thinks about this.
I didn't find any
- Provide several examples of what would and wouldn't trigger violations.
Would trigger:
import UIKit
class Foo { }
Wouldn't trigger:
import UIKit
class Foo { let bar = UIView() }
- Should the rule be configurable, if so what parameters should be configurable?
No
- Should the rule be opt-in or enabled by default? Why?
See README.md for guidelines on when to mark a
rule as opt-in.
Such rule should be enabled by default