diff --git a/Ring/.swiftlint.yml b/Ring/.swiftlint.yml index fab1ed2ed3e64f3ffc0722ee19d30b6f539f2a6f..d3b6db03e794067b6d068bfe68acc9cd4587f25f 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 8516acc715a65ba6d62d6b8c03f95cefcf645dfe..5fd4a265ad3c217cea541df42ea13a95e0b23e8f 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;