tailor icon indicating copy to clipboard operation
tailor copied to clipboard

Tailor autoformat

Open bishalg opened this issue 8 years ago • 4 comments

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

bishalg avatar Apr 22 '16 00:04 bishalg

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

alykhank avatar Apr 22 '16 00:04 alykhank

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.

bishalg avatar Apr 22 '16 01:04 bishalg

Any updates here?

hdoria avatar Oct 22 '17 15:10 hdoria

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

alykhank avatar Sep 26 '18 16:09 alykhank