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
Johennes opened this Issue Sep 7, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@Johennes

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

This comment has been minimized.

Show comment
Hide comment
@marcelofabri

marcelofabri Oct 24, 2017

Collaborator

Implemented in #1922.

Collaborator

marcelofabri commented Oct 24, 2017

Implemented in #1922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment