JohnSundell / Marathon

[DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
MIT License
1.86k stars 78 forks source link

Automatically run SwiftLint locally #92

Open garricn opened 7 years ago

garricn commented 7 years ago

Have you considered this to enforce formatting?

JohnSundell commented 7 years ago

Actually @pixyzehn already added SwiftLint for this purpose here: https://github.com/JohnSundell/Marathon/pull/89 and here: https://github.com/JohnSundell/Marathon/pull/61 😄

JohnSundell commented 7 years ago

That being said, we should make it run locally as well as in CI, without any manual work. How about calling it using ShellOut in a test? What do you think @pixyzehn?

garricn commented 7 years ago

Weird. I meant to write SwifFormat. I must have been really tired!

JohnSundell commented 7 years ago

@garricn You did, but I changed the title of the issue to reflect the task at hand 😉

garricn commented 7 years ago

Have you considered using both? They serve slightly different purposes...

JohnSundell commented 7 years ago

I'm personally fine with only running SwiftLint 🙂