Enable SwiftLint rule 'class_delegate_protocol' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-04 21:54:02 +02:00 committed by Mingshen Sun
parent a93ade06e8
commit 5299ca25d7
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -29,7 +29,7 @@ enum PasswordEditorCellKey {
case type, title, content, placeholders
}
protocol PasswordSettingSliderTableViewCellDelegate {
protocol PasswordSettingSliderTableViewCellDelegate: AnyObject {
func generateAndCopyPassword()
}

View file

@ -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)
}

View file

@ -9,7 +9,7 @@
import passKit
import UIKit
protocol FillPasswordTableViewCellDelegate {
protocol FillPasswordTableViewCellDelegate: AnyObject {
func generateAndCopyPassword()
func showHidePasswordSettings()
}