swiftlint: change configuration
Ignore generated files and use swiftlint only in debugging
configuration.
Change-Id: I356afd1e55923ed1b907dfa1f10212e2b6afa5e9
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
diff --git a/Ring/.swiftlint.yml b/Ring/.swiftlint.yml
index fab1ed2..d3b6db0 100644
--- a/Ring/.swiftlint.yml
+++ b/Ring/.swiftlint.yml
@@ -7,6 +7,7 @@
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 8516acc..5fd4a26 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;