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

Enable swiftformat:sort globally? #1617

Open
domkm opened this issue Jan 23, 2024 · 2 comments
Open

Enable swiftformat:sort globally? #1617

domkm opened this issue Jan 23, 2024 · 2 comments

Comments

@domkm
Copy link

domkm commented Jan 23, 2024

Thanks for this fantastic tool!

I'm finding my code crowded with // swiftformat:sort comments. I can't think of a scenario where I wouldn't want to apply this to a type. Is it possible to enable this globally, like other rules? If not, would you consider implementing this?

@nicklockwood
Copy link
Owner

@calda thoughts?

@calda
Copy link
Contributor

calda commented Jan 23, 2024

I personally wouldn't want this to be enabled by default, but I see the appeal of having this available as an option. It should be straightforward to update the existing code to support this.

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

No branches or pull requests

3 participants