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

sorted_imports should support auto-correction #1822

Closed
2 tasks done
Johennes opened this issue Sep 7, 2017 · 1 comment
Closed
2 tasks done

sorted_imports should support auto-correction #1822

Johennes opened this issue Sep 7, 2017 · 1 comment
Labels
enhancement Ideas for improvements of existing features and rules.

Comments

@Johennes
Copy link

Johennes commented Sep 7, 2017

New Issue Checklist

Enhancement Request

The sorted_imports rule should support autocorrection. It seems like a relatively easy task to just cut all import ... lines, sort them and then re-insert them wherever the first import statement was.

Environment

  • SwiftLint version: 0.22.0
  • Installation method used: Homebrew,
  • Paste your configuration file:
whitelist_rules:
  - sorted_imports
@marcelofabri marcelofabri added the enhancement Ideas for improvements of existing features and rules. label Sep 8, 2017
@marcelofabri
Copy link
Collaborator

Implemented in #1922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Ideas for improvements of existing features and rules.
Projects
None yet
Development

No branches or pull requests

2 participants