Enable SwiftLint rule 'vertical_whitespace_closing_braces' and fix all violations
This commit is contained in:
parent
78be3dabe7
commit
c5e88d82c9
2 changed files with 1 additions and 3 deletions
|
|
@ -189,7 +189,7 @@ whitelist_rules:
|
||||||
- vertical_parameter_alignment_on_call
|
- vertical_parameter_alignment_on_call
|
||||||
- vertical_whitespace
|
- vertical_whitespace
|
||||||
# - vertical_whitespace_between_cases # Additional whitespace not needed because of visible indentation.
|
# - vertical_whitespace_between_cases # Additional whitespace not needed because of visible indentation.
|
||||||
# - vertical_whitespace_closing_braces
|
- vertical_whitespace_closing_braces
|
||||||
- vertical_whitespace_opening_braces
|
- vertical_whitespace_opening_braces
|
||||||
- void_return
|
- void_return
|
||||||
# - weak_delegate
|
# - weak_delegate
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@ class QRScannerController: UIViewController, AVCaptureMetadataOutputObjectsDeleg
|
||||||
view.addSubview(qrCodeFrameView)
|
view.addSubview(qrCodeFrameView)
|
||||||
view.bringSubviewToFront(qrCodeFrameView)
|
view.bringSubviewToFront(qrCodeFrameView)
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch {
|
} catch {
|
||||||
scannerOutput.text = error.localizedDescription
|
scannerOutput.text = error.localizedDescription
|
||||||
}
|
}
|
||||||
|
|
@ -121,7 +120,6 @@ class QRScannerController: UIViewController, AVCaptureMetadataOutputObjectsDeleg
|
||||||
} else {
|
} else {
|
||||||
scannerOutput.text = "NoStringValue".localize()
|
scannerOutput.text = "NoStringValue".localize()
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
qrCodeFrameView?.frame = CGRect.zero
|
qrCodeFrameView?.frame = CGRect.zero
|
||||||
scannerOutput.text = "NoQrCodeDetected.".localize()
|
scannerOutput.text = "NoQrCodeDetected.".localize()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue