-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support auto-correct #6
Comments
Thank you for this idea! I'd like to add a check for group ordering as well: #7. XcodeProj can do this I think. It is capable of writing out Xcode projects. I don't fully understand the implications, if any, but I think it's definitely worth exploring. I'm more focused, right now, on the foundational stuff so this can actually be usable. Next up is support for configuration. But, I'm excited to play around with this, I think it could be wonderful. |
Took a stab at this but it looks like XcodeProj doesn't support editing group order / any group edits at all at the moment, so might need some changes to XcodeProj.
|
Huh, that's surprising. I was under the impression it was used to produce xcodeproj files as output. I wonder if there is a separate system for doing the generation? |
There's methods that Tuist uses to create groups / add files to a group (see here), but there isn't any way to modify the order of files in a group that's already created, so we would have to recreate the PBXProj from scratch I think. |
Oh I misunderstood. Yes, I think you're right, you'd have to re-create the entire |
Hi! The new buildFilesAreOrderedRule looks great, and I would love to add an optional rule to ensure files in a group are sorted alphabetically, but actually correcting these issues manually in the pbxproj is a nightmare. It would be great if some rules could provide auto corrections when adding a --fix flag or whatever, similar to SwiftLint or SwiftFormat.
The text was updated successfully, but these errors were encountered: