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

Tailor autoformat #375

Open
bishalg opened this issue Apr 22, 2016 · 4 comments
Open

Tailor autoformat #375

bishalg opened this issue Apr 22, 2016 · 4 comments
Labels

Comments

@bishalg
Copy link

bishalg commented Apr 22, 2016

Do we have some auto correct feature like SwiftLint does, which can automatically correct certain violations ?
[https://github.com/realm/SwiftLint#auto-correct]

@bishalg bishalg changed the title Tailor auto-correct Tailor auto-correct [Feature Request] Apr 22, 2016
@alykhank
Copy link
Member

Currently, Tailor does not have this capability but it is being considered. We would like to know how developers would prefer to have this implemented, i.e.:

  1. acting directly upon files on the filesystem (assuming you have appropriate version control backups)
  2. output/display a suggested diff on the console or to a file that could be applied (e.g. using Git)
  3. use an Xcode plugin to control individual reformatting on a case-by-case basis

@bishalg
Copy link
Author

bishalg commented Apr 22, 2016

I always find "Xcode Plugin" handy, im a lazy developer :)
Would love something similar to SwiftLint. ie one word command that fixed all my issue !
This might sound risky but every one uses Git so i dont find it big deal even if it acts directly on files.

@adityatrivedi adityatrivedi changed the title Tailor auto-correct [Feature Request] Tailor autoformat Sep 22, 2016
@hdoria
Copy link

hdoria commented Oct 22, 2017

Any updates here?

@alykhank
Copy link
Member

Unfortunately no, but we would recommend you use the official swift-format for this functionality.

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

No branches or pull requests

4 participants