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
|
||||
# - attributes # Contradicts with SwiftFormat option 'funcattributes = prev-line'.
|
||||
- block_based_kvo
|
||||
# - class_delegate_protocol
|
||||
- class_delegate_protocol
|
||||
- closing_brace
|
||||
- closure_body_length
|
||||
- closure_end_indentation
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ enum PasswordEditorCellKey {
|
|||
case type, title, content, placeholders
|
||||
}
|
||||
|
||||
protocol PasswordSettingSliderTableViewCellDelegate {
|
||||
protocol PasswordSettingSliderTableViewCellDelegate: AnyObject {
|
||||
func generateAndCopyPassword()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import passKit
|
|||
import SVProgressHUD
|
||||
import UIKit
|
||||
|
||||
protocol QRScannerControllerDelegate {
|
||||
protocol QRScannerControllerDelegate: AnyObject {
|
||||
func checkScannedOutput(line: String) -> (accept: Bool, message: String)
|
||||
func handleScannedOutput(line: String)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
import passKit
|
||||
import UIKit
|
||||
|
||||
protocol FillPasswordTableViewCellDelegate {
|
||||
protocol FillPasswordTableViewCellDelegate: AnyObject {
|
||||
func generateAndCopyPassword()
|
||||
func showHidePasswordSettings()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue