From 3197ef39a344b11628e16f72f8fc04a2c627a0a6 Mon Sep 17 00:00:00 2001 From: Danny Moesch Date: Mon, 10 Aug 2020 23:13:31 +0200 Subject: [PATCH] Use SwiftLint version 0.40.x --- .swiftlint.yml | 3 +++ pass.xcodeproj/project.pbxproj | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 10635ba..01fe2b5 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -70,6 +70,7 @@ whitelist_rules: - function_default_parameter_at_end # - function_parameter_count - generic_type_name + - ibinspectable_in_extension - identical_operands # - identifier_name - implicit_getter @@ -124,6 +125,7 @@ whitelist_rules: - override_in_extension - pattern_matching_keywords - prefer_self_type_over_type_of_self + - prefer_zero_over_explicit_init # - prefixed_toplevel_constant # Violations are mostly in test code. - private_action # - private_outlet @@ -173,6 +175,7 @@ whitelist_rules: - type_name - unavailable_function - unneeded_break_in_switch + - unneeded_notification_center_removal - unneeded_parentheses_in_closure_argument # - unowned_variable_capture - untyped_error_in_catch diff --git a/pass.xcodeproj/project.pbxproj b/pass.xcodeproj/project.pbxproj index 50950ac..78f0651 100644 --- a/pass.xcodeproj/project.pbxproj +++ b/pass.xcodeproj/project.pbxproj @@ -1360,7 +1360,7 @@ ); runOnlyForDeploymentPostprocessing = 0; 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 */ = { isa = PBXShellScriptBuildPhase;