Commit 7c473707 authored by Roddi Deecke's avatar Roddi Deecke

add swiftlint build phase

parent 9220992f
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
identifier_name:
min_length: 2 # only warning
max_length: # warning and error
warning: 40
error: 50
excluded: Carthage # excluded via string
# disable those *for* *now* so that the compile step
# does not create issues for not yet fixed issues
disabled_rules:
- identifier_name
- function_parameter_count
- line_length
- force_cast
- syntactic_sugar
- implicit_getter
- control_statement
- todo
- file_length
- function_body_length
- cyclomatic_complexity
- unneeded_break_in_switch
- type_body_length
- vertical_parameter_alignment
\ No newline at end of file
......@@ -171,6 +171,7 @@
B479A1ED230590D0007C9672 /* Frameworks */,
B479A1EE230590D0007C9672 /* Resources */,
3A0BAEB1D0AC8DE729431FB4 /* [CP] Embed Pods Frameworks */,
DD8DD2B2230E05FD00E5F7FA /* Swiftlint */,
);
buildRules = (
);
......@@ -267,6 +268,24 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
DD8DD2B2230E05FD00E5F7FA /* Swiftlint */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = Swiftlint;
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed. Skipping lint.\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment