SwiftLint
SwiftLint copied to clipboard
Xcode integration / on save / shortcuts
Xcode integration
There should be an official app, we can use to autocorrect single files inside xCode via shortcuts: https://github.com/realm/SwiftLint/issues/538#issuecomment-206095152
Currently, I use this app: https://github.com/sugarmo/XCFormat
With this app installed, i can configure shortcuts in xCode itself to trigger the formatter, e.g. on save or any other defined shortcut. Would be great if we can also have something like.
There is another solution which works great.
https://github.com/nicklockwood/SwiftFormat#xcode-source-editor-extension