Skip to content

Order all imports lexicographically #2145

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

Merged

Conversation

natikgadzhi
Copy link
Contributor

Motivation

Changes

  • Adds OrderedImports rule to .swift-format
  • Removes a trailing space in format.py
  • Formats the codebase to comply with OrderedImports

- Adds `OrderedImports` rule to `.swift-format`
- Removes a trailing space in `format.py`
- Formats the codebase to comply with `OrderedImports`
natikgadzhi added a commit to natikgadzhi/swift-syntax that referenced this pull request Sep 2, 2023
- Adds `OmitExplicitReturns` `swift-format` rule to `.swift-format`
- Formats the codebase
- Follow-up to swiftlang#2145, but in a separate commit for easier review.
@kimdv
Copy link
Contributor

kimdv commented Sep 3, 2023

@swift-ci please test

@natikgadzhi
Copy link
Contributor Author

@kimdv, thank you for reviewing this! ❤️

@ahoppen ahoppen requested review from rintaro and bnbarham September 5, 2023 19:13
Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I just want to get a second opinion from @bnbarham and @rintaro before merging this.

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me, thanks @natikgadzhi!

@ahoppen ahoppen merged commit f4fa6e7 into swiftlang:main Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants