Fix lint issues.
This commit is contained in:
parent
6e7b419bf4
commit
b7f82944c7
@ -1,8 +1,11 @@
|
||||
identifier_name:
|
||||
min_length: 1
|
||||
max_length: 40
|
||||
allowed_patterns: ^_.*$
|
||||
|
||||
line_length:
|
||||
warning: 200
|
||||
error: 300
|
||||
ignores_comments: true
|
||||
ignores_urls: true
|
||||
|
||||
|
@ -476,11 +476,11 @@ final class ReaderAPICaller: NSObject {
|
||||
switch result {
|
||||
case .success:
|
||||
completion(.success(()))
|
||||
case .failure(let error):
|
||||
case .failure(let error):
|
||||
completion(.failure(error))
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
case .failure(let error):
|
||||
completion(.failure(error))
|
||||
}
|
||||
|
@ -47,7 +47,18 @@ class KeyboardManager {
|
||||
|
||||
static func createKeyCommand(title: String, action: String, input: String, modifiers: UIKeyModifierFlags) -> UIKeyCommand {
|
||||
let selector = NSSelectorFromString(action)
|
||||
let keyCommand = UIKeyCommand(title: title, image: nil, action: selector, input: input, modifierFlags: modifiers, propertyList: nil, alternates: [], discoverabilityTitle: nil, attributes: [], state: .on)
|
||||
let keyCommand = UIKeyCommand(
|
||||
title: title,
|
||||
image: nil,
|
||||
action: selector,
|
||||
input: input,
|
||||
modifierFlags: modifiers,
|
||||
propertyList: nil,
|
||||
alternates: [],
|
||||
discoverabilityTitle: nil,
|
||||
attributes: [],
|
||||
state: .on
|
||||
)
|
||||
keyCommand.wantsPriorityOverSystemBehavior = true
|
||||
return keyCommand
|
||||
}
|
||||
@ -91,12 +102,11 @@ private extension KeyboardManager {
|
||||
return "\u{8}"
|
||||
case "[deletefunction]":
|
||||
return nil
|
||||
case "[tab]":
|
||||
return "\t"
|
||||
case "[tab]":
|
||||
return "\t"
|
||||
default:
|
||||
return key
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static func createKeyModifierFlags(keyEntry: [String: Any]) -> UIKeyModifierFlags {
|
||||
|
Loading…
x
Reference in New Issue
Block a user