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

Code Lint automation #204

Closed
1 task done
ShlomoCode opened this issue Jul 17, 2024 · 4 comments · Fixed by #250
Closed
1 task done

Code Lint automation #204

ShlomoCode opened this issue Jul 17, 2024 · 4 comments · Fixed by #250

Comments

@ShlomoCode
Copy link
Contributor

ShlomoCode commented Jul 17, 2024

I'm thinking of using https://github.com/nicklockwood/SwiftFormat

@hasansultan92
Copy link
Contributor

Cant we just make a script to use the default file formatter from Xcode? Make a hook and as a pre-commit the bash script runs and then the commit goes through?

@ShlomoCode
Copy link
Contributor Author

It is possible? XCode supports formatting all files via the command line?

@hasansultan92
Copy link
Contributor

Not sure to be honest, I know we have to use Xcode in the command line to install stuff like git on Macs for the first time, so I figured there might be something like this. We can do some more research into this, I like the overall idea of using some sort of a linter regardless

@hasansultan92
Copy link
Contributor

Did some research, I cant seem to find much about Xcode having capabilities in the command line.

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 a pull request may close this issue.

2 participants