Skip to content

Commit

Permalink
Merge branch 'swiftlint-use-script-input-files'
Browse files Browse the repository at this point in the history
* swiftlint-use-script-input-files:
  Change to using `--use-script-input-files` option on README.md
  Add `--use-script-input-files` option to swiftlint
  • Loading branch information
norio-nomura committed Nov 18, 2015
2 parents b7429b3 + 06b6c89 commit 49612df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ExtraBuildPhase/ExtraBuildPhase.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ @implementation ExtraBuildPhase(SwizzlingTargetMethods)
NSString *shellScript = [defaults stringForKey:@"shellScript"];
if (!shellScript) {
shellScript = @"if which swiftlint >/dev/null; then\n"
" swiftlint 2>/dev/null\n"
" swiftlint lint --use-script-input-files 2>/dev/null\n"
"fi\n"
"exit 0 # ignore result of swiftlint";
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Restart Xcode after installing
# Change shell script
defaults write io.github.norio-nomura.ExtraBuildPhase shellScript -string '
if which swiftlint >/dev/null; then
swiftlint lint --config ~/.swiftlint.yml 2>/dev/null
swiftlint lint --use-script-input-files --config ~/.swiftlint.yml 2>/dev/null
fi
exit 0 # ignore result of swiftlint
'
Expand Down

0 comments on commit 49612df

Please sign in to comment.