Use SwiftLint version 0.43.x

This commit is contained in:
Danny Moesch 2021-03-06 15:26:42 +01:00 committed by Mingshen Sun
parent ac3d246b81
commit 3f75591484
5 changed files with 8 additions and 4 deletions

View file

@ -13,6 +13,7 @@ only_rules:
- anyobject_protocol - anyobject_protocol
- array_init - array_init
- attributes - attributes
# - balanced_xctest_lifecycle
- block_based_kvo - block_based_kvo
- class_delegate_protocol - class_delegate_protocol
- closing_brace - closing_brace
@ -36,6 +37,7 @@ only_rules:
- cyclomatic_complexity - cyclomatic_complexity
- deployment_target - deployment_target
- discarded_notification_center_observer - discarded_notification_center_observer
- discouraged_assert
- discouraged_direct_init - discouraged_direct_init
# - discouraged_object_literal # - discouraged_object_literal
- discouraged_optional_boolean - discouraged_optional_boolean
@ -90,6 +92,7 @@ only_rules:
- large_tuple - large_tuple
- last_where - last_where
- leading_whitespace - leading_whitespace
# - legacy_objc_type
- legacy_cggeometry_functions - legacy_cggeometry_functions
- legacy_constant - legacy_constant
- legacy_constructor - legacy_constructor
@ -137,6 +140,7 @@ only_rules:
- private_action - private_action
# - private_outlet # - private_outlet
- private_over_fileprivate - private_over_fileprivate
- private_subject
- private_unit_test - private_unit_test
# - prohibited_interface_builder # - prohibited_interface_builder
# - prohibited_super_call # - prohibited_super_call

View file

@ -15,7 +15,7 @@ class PasswordsTableDataSource: NSObject, UITableViewDataSource {
var suggestedPasswordsTableEntries: [PasswordTableEntry] var suggestedPasswordsTableEntries: [PasswordTableEntry]
var otherPasswordsTableEntries: [PasswordTableEntry] var otherPasswordsTableEntries: [PasswordTableEntry]
var showSuggestion: Bool = false var showSuggestion = false
init(entries: [PasswordTableEntry] = []) { init(entries: [PasswordTableEntry] = []) {
self.passwordTableEntries = entries self.passwordTableEntries = entries

View file

@ -21,7 +21,7 @@ open class PasscodeLockViewController: UIViewController, UITextFieldDelegate {
weak var forgotPasscodeButton: UIButton? weak var forgotPasscodeButton: UIButton?
open weak var cancelButton: UIButton? open weak var cancelButton: UIButton?
var isCancellable: Bool = false var isCancellable = false
private let passwordStore = PasswordStore.shared private let passwordStore = PasswordStore.shared

View file

@ -11,7 +11,7 @@ public class PGPAgent {
private let keyStore: KeyStore private let keyStore: KeyStore
private var pgpInterface: PGPInterface? private var pgpInterface: PGPInterface?
private var latestDecryptStatus: Bool = true private var latestDecryptStatus = true
public init(keyStore: KeyStore = AppKeychain.shared) { public init(keyStore: KeyStore = AppKeychain.shared) {
self.keyStore = keyStore self.keyStore = keyStore

View file

@ -1,4 +1,4 @@
SWIFTLINT_VERSION="0.42.*" SWIFTLINT_VERSION="0.43.*"
if [[ "${CI}" == "true" ]]; then if [[ "${CI}" == "true" ]]; then
echo "Running in a Continuous Integration environment. Linting is skipped." echo "Running in a Continuous Integration environment. Linting is skipped."