Update SwiftLint to version 0.52.x, fix new violations or disable them (#618)

This commit is contained in:
Danny Mösch 2023-06-25 19:21:45 +02:00 committed by GitHub
parent d9bd0f3014
commit ba1a81170b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 10 deletions

View file

@ -491,9 +491,8 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
override func tableView(_: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if tableData[section].header != nil {
return 30
} else {
return UITableView.automaticDimension
}
return UITableView.automaticDimension
}
override func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {

View file

@ -209,13 +209,11 @@ class PasswordEditorTableViewController: UITableViewController {
if sectionHeaderTitles[section] != nil {
if UIDevice.current.userInterfaceIdiom == .phone {
return 30
} else {
// Fix covered section header in macOS
return 36
}
} else {
return UITableView.automaticDimension
// Fix covered section header in macOS
return 36
}
return UITableView.automaticDimension
}
override func tableView(_: UITableView, heightForFooterInSection _: Int) -> CGFloat {

View file

@ -59,7 +59,7 @@ class PasswordNavigationViewController: UIViewController {
let addPasswordButton = UIButton(type: .system)
let plusImage = UIImage(systemName: "plus.circle", withConfiguration: UIImage.SymbolConfiguration(weight: .regular))
addPasswordButton.setImage(plusImage, for: .normal)
addPasswordButton.addTarget(self, action: #selector(self.addPasswordAction), for: .touchDown)
addPasswordButton.addTarget(self, action: #selector(addPasswordAction), for: .touchDown)
addPasswordUIBarButtonItem.customView = addPasswordButton
return addPasswordUIBarButtonItem
}()