Last active
August 29, 2018 12:03
-
-
Save Wooder/484db02a5f4bf89ee36b094abfd2f8f4 to your computer and use it in GitHub Desktop.
swiftlint command to autocorrect a single file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#autocorrect a single file | |
SCRIPT_INPUT_FILE_COUNT=1 SCRIPT_INPUT_FILE_0="Class.swift" swiftlint autocorrect --use-script-input-files | |
#show only swiftlint warnings | |
swiftlint 2>&1 | grep -i warning |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment