Use SwiftLint version 0.40.x
This commit is contained in:
parent
d3a11c9d29
commit
3197ef39a3
2 changed files with 4 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ whitelist_rules:
|
||||||
- function_default_parameter_at_end
|
- function_default_parameter_at_end
|
||||||
# - function_parameter_count
|
# - function_parameter_count
|
||||||
- generic_type_name
|
- generic_type_name
|
||||||
|
- ibinspectable_in_extension
|
||||||
- identical_operands
|
- identical_operands
|
||||||
# - identifier_name
|
# - identifier_name
|
||||||
- implicit_getter
|
- implicit_getter
|
||||||
|
|
@ -124,6 +125,7 @@ whitelist_rules:
|
||||||
- override_in_extension
|
- override_in_extension
|
||||||
- pattern_matching_keywords
|
- pattern_matching_keywords
|
||||||
- prefer_self_type_over_type_of_self
|
- prefer_self_type_over_type_of_self
|
||||||
|
- prefer_zero_over_explicit_init
|
||||||
# - prefixed_toplevel_constant # Violations are mostly in test code.
|
# - prefixed_toplevel_constant # Violations are mostly in test code.
|
||||||
- private_action
|
- private_action
|
||||||
# - private_outlet
|
# - private_outlet
|
||||||
|
|
@ -173,6 +175,7 @@ whitelist_rules:
|
||||||
- type_name
|
- type_name
|
||||||
- unavailable_function
|
- unavailable_function
|
||||||
- unneeded_break_in_switch
|
- unneeded_break_in_switch
|
||||||
|
- unneeded_notification_center_removal
|
||||||
- unneeded_parentheses_in_closure_argument
|
- unneeded_parentheses_in_closure_argument
|
||||||
# - unowned_variable_capture
|
# - unowned_variable_capture
|
||||||
- untyped_error_in_catch
|
- untyped_error_in_catch
|
||||||
|
|
|
||||||
|
|
@ -1360,7 +1360,7 @@
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "SWIFTLINT_VERSION=\"0.39.*\"\n\nif which swiftlint > /dev/null; then\n if [[ \"$(swiftlint version)\" == $SWIFTLINT_VERSION ]]; then\n swiftlint\n else\n echo \"Failure: SwiftLint $SWIFTLINT_VERSION is required. Install it or update the build script to use a newer version.\"\n exit 1\n fi\nelse\n echo \"Failure: SwiftLint not installed. Get it via 'brew install swiftlint'.\"\n exit 2\nfi\n";
|
shellScript = "SWIFTLINT_VERSION=\"0.40.*\"\n\nif which swiftlint > /dev/null; then\n if [[ \"$(swiftlint version)\" == $SWIFTLINT_VERSION ]]; then\n swiftlint\n else\n echo \"Failure: SwiftLint $SWIFTLINT_VERSION is required. Install it or update the build script to use a newer version.\"\n exit 1\n fi\nelse\n echo \"Failure: SwiftLint not installed. Get it via 'brew install swiftlint'.\"\n exit 2\nfi\n";
|
||||||
};
|
};
|
||||||
3EFC287772C1D2B2762FAC45 /* [CP] Check Pods Manifest.lock */ = {
|
3EFC287772C1D2B2762FAC45 /* [CP] Check Pods Manifest.lock */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue