Skip to content

Commit

Permalink
Run the SwiftLint build phase with the --lenient flag
Browse files Browse the repository at this point in the history
Running SwiftLint in "lenient" mode will only generate warnings, preventing the linter from causing the build to fail.
realm/SwiftLint#1322
  • Loading branch information
mattrubin committed Apr 24, 2017
1 parent 4864cc4 commit f10c8d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SwiftGit2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint is not installed\"\nfi";
shellScript = "if which swiftlint >/dev/null; then\n swiftlint --lenient\nelse\n echo \"warning: SwiftLint is not installed\"\nfi";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -1180,6 +1180,7 @@
C9CE0DD51E0710BD0053205D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down

0 comments on commit f10c8d0

Please sign in to comment.