From 8fe122e038a4c24ec87b68048f4b46ca8f4de590 Mon Sep 17 00:00:00 2001 From: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com> Date: Wed, 13 Sep 2017 17:09:51 -0400 Subject: [PATCH] swiftlint: change configuration Ignore generated files and use swiftlint only in debugging configuration. Change-Id: I356afd1e55923ed1b907dfa1f10212e2b6afa5e9 Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> --- Ring/.swiftlint.yml | 1 + Ring/Ring.xcodeproj/project.pbxproj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Ring/.swiftlint.yml b/Ring/.swiftlint.yml index fab1ed2ed..d3b6db03e 100644 --- a/Ring/.swiftlint.yml +++ b/Ring/.swiftlint.yml @@ -7,6 +7,7 @@ opt_in_rules: # some rules are only opt-in excluded: # paths to ignore during linting. Takes precedence over `included`. - Carthage - Pods + - Ring/Constants force_cast: warning # implicitly force_try: diff --git a/Ring/Ring.xcodeproj/project.pbxproj b/Ring/Ring.xcodeproj/project.pbxproj index 8516acc71..5fd4a265a 100644 --- a/Ring/Ring.xcodeproj/project.pbxproj +++ b/Ring/Ring.xcodeproj/project.pbxproj @@ -1224,7 +1224,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if which swiftlint > /dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi"; + shellScript = "if [ \"${CONFIGURATION}\" != \"Release\" ]; then\n if which swiftlint > /dev/null; then\n swiftlint\n else\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\n fi\nfi"; }; 1ABE07C41F0D779F00D36361 /* ⚙️ SwiftGen Code Generation */ = { isa = PBXShellScriptBuildPhase; -- GitLab