The unused_import rule is not actually being enforced because it runs during the analysis phase and not during the build phase.
(And I've tried running it as part of analysis and even then it doesn't work: if you satisfy the rule when analyzing the package, then imports are missing when trying to use the package.)
The current lint run warns about this rule not being run. We should just remove it.
Also the anyobject_protocol warning is now enforced by Xcode itself and so no longer needs to be checked with SwiftLint. Again we should just remove it.
warning: 'unused_import' should be listed in the 'analyzer_rules' configuration section for more clarity as it is only run by 'swiftlint analyze'
The `anyobject_protocol` rule is now deprecated and will be completely removed in a future release.
Task
Remove the unused_import and anyobject_protocol rules from .swiftlint.yml config file
Intro
The
unused_import
rule is not actually being enforced because it runs during the analysis phase and not during the build phase. (And I've tried running it as part of analysis and even then it doesn't work: if you satisfy the rule when analyzing the package, then imports are missing when trying to use the package.)The current lint run warns about this rule not being run. We should just remove it.
Also the
anyobject_protocol
warning is now enforced by Xcode itself and so no longer needs to be checked with SwiftLint. Again we should just remove it.Task
unused_import
andanyobject_protocol
rules from.swiftlint.yml
config file