Enable SwiftLint rule 'class_delegate_protocol' and fix all violations
This commit is contained in:
parent
a93ade06e8
commit
5299ca25d7
4 changed files with 4 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ whitelist_rules:
|
||||||
- array_init
|
- array_init
|
||||||
# - attributes # Contradicts with SwiftFormat option 'funcattributes = prev-line'.
|
# - attributes # Contradicts with SwiftFormat option 'funcattributes = prev-line'.
|
||||||
- block_based_kvo
|
- block_based_kvo
|
||||||
# - class_delegate_protocol
|
- class_delegate_protocol
|
||||||
- closing_brace
|
- closing_brace
|
||||||
- closure_body_length
|
- closure_body_length
|
||||||
- closure_end_indentation
|
- closure_end_indentation
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ enum PasswordEditorCellKey {
|
||||||
case type, title, content, placeholders
|
case type, title, content, placeholders
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol PasswordSettingSliderTableViewCellDelegate {
|
protocol PasswordSettingSliderTableViewCellDelegate: AnyObject {
|
||||||
func generateAndCopyPassword()
|
func generateAndCopyPassword()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import passKit
|
||||||
import SVProgressHUD
|
import SVProgressHUD
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
protocol QRScannerControllerDelegate {
|
protocol QRScannerControllerDelegate: AnyObject {
|
||||||
func checkScannedOutput(line: String) -> (accept: Bool, message: String)
|
func checkScannedOutput(line: String) -> (accept: Bool, message: String)
|
||||||
func handleScannedOutput(line: String)
|
func handleScannedOutput(line: String)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
import passKit
|
import passKit
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
protocol FillPasswordTableViewCellDelegate {
|
protocol FillPasswordTableViewCellDelegate: AnyObject {
|
||||||
func generateAndCopyPassword()
|
func generateAndCopyPassword()
|
||||||
func showHidePasswordSettings()
|
func showHidePasswordSettings()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue