Update SwiftLint to version 0.45.x (#522)
* Use SwiftLint version 0.45.x * Enable SwiftLint rule 'self_in_property_initialization' and handle all violations
This commit is contained in:
parent
afe0397dcf
commit
aad23582f9
4 changed files with 11 additions and 10 deletions
|
|
@ -168,6 +168,7 @@ only_rules:
|
||||||
# - required_deinit
|
# - required_deinit
|
||||||
- required_enum_case
|
- required_enum_case
|
||||||
- return_arrow_whitespace
|
- return_arrow_whitespace
|
||||||
|
- self_in_property_initialization
|
||||||
- shorthand_operator
|
- shorthand_operator
|
||||||
- single_test_class
|
- single_test_class
|
||||||
- sorted_first_last
|
- sorted_first_last
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class AdvancedSettingsTableViewController: UITableViewController {
|
||||||
@IBOutlet var discardChangesTableViewCell: UITableViewCell!
|
@IBOutlet var discardChangesTableViewCell: UITableViewCell!
|
||||||
let passwordStore = PasswordStore.shared
|
let passwordStore = PasswordStore.shared
|
||||||
|
|
||||||
let encryptInASCIIArmoredSwitch: UISwitch = {
|
private lazy var encryptInASCIIArmoredSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import UIKit
|
||||||
class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
let passwordStore = PasswordStore.shared
|
let passwordStore = PasswordStore.shared
|
||||||
|
|
||||||
let hideUnknownSwitch: UISwitch = {
|
private lazy var hideUnknownSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
@ -20,7 +20,7 @@ class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
return uiSwitch
|
return uiSwitch
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let hideOTPSwitch: UISwitch = {
|
private lazy var hideOTPSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
@ -28,7 +28,7 @@ class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
return uiSwitch
|
return uiSwitch
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let autoCopyOTPSwitch: UISwitch = {
|
private lazy var autoCopyOTPSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
@ -36,7 +36,7 @@ class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
return uiSwitch
|
return uiSwitch
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let rememberPGPPassphraseSwitch: UISwitch = {
|
private lazy var rememberPGPPassphraseSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
@ -45,7 +45,7 @@ class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
return uiSwitch
|
return uiSwitch
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let rememberGitCredentialPassphraseSwitch: UISwitch = {
|
private lazy var rememberGitCredentialPassphraseSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
@ -54,7 +54,7 @@ class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
return uiSwitch
|
return uiSwitch
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let enableGPGIDSwitch: UISwitch = {
|
private lazy var enableGPGIDSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
@ -63,7 +63,7 @@ class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
return uiSwitch
|
return uiSwitch
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let showFolderSwitch: UISwitch = {
|
private lazy var showFolderSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
@ -72,7 +72,7 @@ class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
return uiSwitch
|
return uiSwitch
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let hidePasswordImagesSwitch: UISwitch = {
|
private lazy var hidePasswordImagesSwitch: UISwitch = {
|
||||||
let uiSwitch = UISwitch()
|
let uiSwitch = UISwitch()
|
||||||
uiSwitch.onTintColor = Colors.systemBlue
|
uiSwitch.onTintColor = Colors.systemBlue
|
||||||
uiSwitch.sizeToFit()
|
uiSwitch.sizeToFit()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
SWIFTLINT_VERSION="0.44.*"
|
SWIFTLINT_VERSION="0.45.*"
|
||||||
|
|
||||||
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."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue