Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SwiftLint config warnings #43

Closed
mpospese opened this issue Feb 25, 2023 · 0 comments · Fixed by #45
Closed

Fix SwiftLint config warnings #43

mpospese opened this issue Feb 25, 2023 · 0 comments · Fixed by #45

Comments

@mpospese
Copy link
Contributor

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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant