Fix new warning caused by Swift 5.3 and bring SwiftLint rule in sync with it

This commit is contained in:
Danny Moesch 2020-09-19 15:20:50 +02:00 committed by Mingshen Sun
parent 2b7b378e12
commit f9d5d794f0
5 changed files with 7 additions and 4 deletions

View file

@ -212,3 +212,5 @@ closure_body_length:
error: 60 error: 60
type_name: type_name:
max_length: 50 max_length: 50
trailing_closure:
only_single_muted_parameter: true

View file

@ -1,5 +1,5 @@
language: objective-c language: objective-c
osx_image: xcode11.6 osx_image: xcode12
addons: addons:
homebrew: homebrew:
packages: packages:

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Scheme <Scheme
LastUpgradeVersion = "1100" LastUpgradeVersion = "1200"
version = "1.3"> version = "1.3">
<BuildAction <BuildAction
parallelizeBuildables = "YES" parallelizeBuildables = "YES"

View file

@ -33,6 +33,7 @@ class GitRepositorySettingsTableViewController: UITableViewController, PasswordA
keyStore: keychain keyStore: keychain
) )
} }
private var gitAuthenticationMethod: GitAuthenticationMethod { private var gitAuthenticationMethod: GitAuthenticationMethod {
get { Defaults.gitAuthenticationMethod } get { Defaults.gitAuthenticationMethod }
set { set {

View file

@ -88,9 +88,9 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
@objc @objc
private func decryptThenShowPassword(keyID: String? = nil) { private func decryptThenShowPassword(keyID: String? = nil) {
guard let passwordEntity = passwordEntity else { guard let passwordEntity = passwordEntity else {
Utils.alert(title: "CannotShowPassword".localize(), message: "PasswordDoesNotExist".localize(), controller: self) { Utils.alert(title: "CannotShowPassword".localize(), message: "PasswordDoesNotExist".localize(), controller: self, completion: {
self.navigationController!.popViewController(animated: true) self.navigationController!.popViewController(animated: true)
} })
return return
} }
DispatchQueue.global(qos: .userInitiated).async { DispatchQueue.global(qos: .userInitiated).async {