Fix lint issues.

This commit is contained in:
Brent Simmons 2025-01-24 15:50:14 -08:00
parent 4b1b285d0b
commit 4fabcab999
8 changed files with 14 additions and 10 deletions

View File

@ -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

View File

@ -23,7 +23,6 @@ class ShareViewController: NSViewController {
return NSNib.Name("ShareViewController")
}
// swiftlint:disable:next function_body_length
override func loadView() {
super.loadView()

View File

@ -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?

View File

@ -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")

View File

@ -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")

View File

@ -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)

View File

@ -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 {

View File

@ -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()