diff --git a/.swiftlint.yml b/.swiftlint.yml index 4207872..a3bb63c 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -13,6 +13,7 @@ only_rules: - anyobject_protocol - array_init - attributes +# - balanced_xctest_lifecycle - block_based_kvo - class_delegate_protocol - closing_brace @@ -36,6 +37,7 @@ only_rules: - cyclomatic_complexity - deployment_target - discarded_notification_center_observer + - discouraged_assert - discouraged_direct_init # - discouraged_object_literal - discouraged_optional_boolean @@ -90,6 +92,7 @@ only_rules: - large_tuple - last_where - leading_whitespace +# - legacy_objc_type - legacy_cggeometry_functions - legacy_constant - legacy_constructor @@ -137,6 +140,7 @@ only_rules: - private_action # - private_outlet - private_over_fileprivate + - private_subject - private_unit_test # - prohibited_interface_builder # - prohibited_super_call diff --git a/passAutoFillExtension/Services/PasswordsTableDataSource.swift b/passAutoFillExtension/Services/PasswordsTableDataSource.swift index 2540d60..287df42 100644 --- a/passAutoFillExtension/Services/PasswordsTableDataSource.swift +++ b/passAutoFillExtension/Services/PasswordsTableDataSource.swift @@ -15,7 +15,7 @@ class PasswordsTableDataSource: NSObject, UITableViewDataSource { var suggestedPasswordsTableEntries: [PasswordTableEntry] var otherPasswordsTableEntries: [PasswordTableEntry] - var showSuggestion: Bool = false + var showSuggestion = false init(entries: [PasswordTableEntry] = []) { self.passwordTableEntries = entries diff --git a/passKit/Controllers/PasscodeLockViewController.swift b/passKit/Controllers/PasscodeLockViewController.swift index 9d175ce..cbcecfe 100644 --- a/passKit/Controllers/PasscodeLockViewController.swift +++ b/passKit/Controllers/PasscodeLockViewController.swift @@ -21,7 +21,7 @@ open class PasscodeLockViewController: UIViewController, UITextFieldDelegate { weak var forgotPasscodeButton: UIButton? open weak var cancelButton: UIButton? - var isCancellable: Bool = false + var isCancellable = false private let passwordStore = PasswordStore.shared diff --git a/passKit/Crypto/PGPAgent.swift b/passKit/Crypto/PGPAgent.swift index ff6cc99..85de975 100644 --- a/passKit/Crypto/PGPAgent.swift +++ b/passKit/Crypto/PGPAgent.swift @@ -11,7 +11,7 @@ public class PGPAgent { private let keyStore: KeyStore private var pgpInterface: PGPInterface? - private var latestDecryptStatus: Bool = true + private var latestDecryptStatus = true public init(keyStore: KeyStore = AppKeychain.shared) { self.keyStore = keyStore diff --git a/scripts/swiftlint.sh b/scripts/swiftlint.sh index 42cf405..05a079f 100755 --- a/scripts/swiftlint.sh +++ b/scripts/swiftlint.sh @@ -1,4 +1,4 @@ -SWIFTLINT_VERSION="0.42.*" +SWIFTLINT_VERSION="0.43.*" if [[ "${CI}" == "true" ]]; then echo "Running in a Continuous Integration environment. Linting is skipped."