Fix lint issues.
This commit is contained in:
parent
4b1b285d0b
commit
4fabcab999
@ -21,6 +21,8 @@ disabled_rules:
|
||||
- force_try
|
||||
- cyclomatic_complexity
|
||||
- generic_type_name
|
||||
- function_body_length
|
||||
- type_body_length
|
||||
|
||||
excluded:
|
||||
- Modules/Secrets/Sources/Secrets/SecretKey.swift
|
||||
|
@ -23,7 +23,6 @@ class ShareViewController: NSViewController {
|
||||
return NSNib.Name("ShareViewController")
|
||||
}
|
||||
|
||||
// swiftlint:disable:next function_body_length
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
|
||||
|
@ -64,7 +64,6 @@ public final class WidgetDataEncoder {
|
||||
}
|
||||
}
|
||||
|
||||
// swiftlint:disable:next function_body_length
|
||||
private func encodeWidgetData(completion: @escaping (WidgetData?) -> Void) {
|
||||
let dispatchGroup = DispatchGroup()
|
||||
var groupError: Error?
|
||||
|
@ -20,7 +20,6 @@ class MainFeedTableViewCell: VibrantTableViewCell {
|
||||
weak var delegate: MainFeedTableViewCellDelegate?
|
||||
|
||||
override var accessibilityLabel: String? {
|
||||
set {}
|
||||
get {
|
||||
if unreadCount > 0 {
|
||||
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessibility")
|
||||
|
@ -8,16 +8,15 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
protocol MainFeedTableViewSectionHeaderDelegate {
|
||||
protocol MainFeedTableViewSectionHeaderDelegate: AnyObject {
|
||||
func mainFeedTableViewSectionHeaderDisclosureDidToggle(_ sender: MainFeedTableViewSectionHeader)
|
||||
}
|
||||
|
||||
class MainFeedTableViewSectionHeader: UITableViewHeaderFooterView {
|
||||
|
||||
var delegate: MainFeedTableViewSectionHeaderDelegate?
|
||||
weak var delegate: MainFeedTableViewSectionHeaderDelegate?
|
||||
|
||||
override var accessibilityLabel: String? {
|
||||
set {}
|
||||
get {
|
||||
if unreadCount > 0 {
|
||||
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessibility")
|
||||
@ -29,7 +28,6 @@ class MainFeedTableViewSectionHeader: UITableViewHeaderFooterView {
|
||||
}
|
||||
|
||||
private var expandedStateMessage: String {
|
||||
set {}
|
||||
get {
|
||||
if disclosureExpanded {
|
||||
return NSLocalizedString("Expanded", comment: "Disclosure button expanded state for accessibility")
|
||||
|
@ -581,7 +581,16 @@ class TimelineViewController: UITableViewController, UndoableCommandRunner {
|
||||
status: status
|
||||
)
|
||||
|
||||
let prototypeCellData = MainTimelineCellData(article: prototypeArticle, showFeedName: .feed, feedName: "Prototype Feed Name", byline: nil, iconImage: nil, showIcon: false, numberOfLines: numberOfTextLines, iconSize: iconSize)
|
||||
let prototypeCellData = MainTimelineCellData(
|
||||
article: prototypeArticle,
|
||||
showFeedName: .feed,
|
||||
feedName: "Prototype Feed Name",
|
||||
byline: nil,
|
||||
iconImage: nil,
|
||||
showIcon: false,
|
||||
numberOfLines: numberOfTextLines,
|
||||
iconSize: iconSize
|
||||
)
|
||||
|
||||
if UIApplication.shared.preferredContentSizeCategory.isAccessibilityCategory {
|
||||
let layout = MainTimelineAccessibilityCellLayout(width: tableView.bounds.width, insets: tableView.safeAreaInsets, cellData: prototypeCellData)
|
||||
|
@ -156,7 +156,6 @@ class SettingsViewController: UITableViewController {
|
||||
return cell
|
||||
}
|
||||
|
||||
// swiftlint:disable:next function_body_length
|
||||
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
|
||||
switch indexPath.section {
|
||||
|
@ -22,7 +22,6 @@ class ShareViewController: SLComposeServiceViewController, ShareFolderPickerCont
|
||||
private var selectedContainer: ExtensionContainer?
|
||||
private var folderItem: SLComposeSheetConfigurationItem!
|
||||
|
||||
// swiftlint:disable:next function_body_length
|
||||
override func viewDidLoad() {
|
||||
|
||||
extensionContainers = ExtensionContainersFile.read()
|
||||
|
Loading…
x
Reference in New Issue
Block a user