Fix various SwiftLint warnings.

This commit is contained in:
Brent Simmons committed 2026-01-01 17:55:12 -08:00
1 parent 50140acac2
commit 0832a7cf67
52 files changed
+165 -282

No files matched your search

@@ -144,6 +144,4 @@ class MainTimelineFeedCell: UITableViewCell {
self.backgroundConfiguration = backgroundConfig
}
}
@@ -46,7 +46,6 @@ class MainTimelineIconFeedCell: UITableViewCell {
}
}
private func configure(_ cellData: MainTimelineCellData) {
updateIndicatorView(cellData)
articleTitle.numberOfLines = cellData.numberOfLines
@@ -117,8 +116,6 @@ class MainTimelineIconFeedCell: UITableViewCell {
private func applyTitleTextWithAttributes(_ state: UICellConfigurationState) {
let attributedCellText = NSMutableAttributedString()
let isSelected = state.isSelected || state.isHighlighted || state.isFocused || state.isSwiped
if cellData.title != "" {
let paragraphStyle = NSMutableParagraphStyle()
@@ -1018,7 +1018,6 @@ private extension MainTimelineViewController {
return nil
}
let localizedMenuText = NSLocalizedString("Mark All as Read in “%@”", comment: "Command")
let title = NSString.localizedStringWithFormat(localizedMenuText as NSString, feed.nameForDisplay) as String
@@ -14,7 +14,6 @@ extension CGRect: MarkAsReadAlertControllerSourceType {}
extension UIView: MarkAsReadAlertControllerSourceType {}
extension UIBarButtonItem: MarkAsReadAlertControllerSourceType {}
@MainActor struct MarkAsReadAlertController {
static func confirm<T>(_ controller: UIViewController?,
@@ -45,7 +44,6 @@ extension UIBarButtonItem: MarkAsReadAlertControllerSourceType {}
sourceType: T,
completion: @escaping (UIAlertAction) -> Void) -> UIAlertController where T: MarkAsReadAlertControllerSourceType {
let title = NSLocalizedString("Mark As Read", comment: "Mark As Read")
let message = NSLocalizedString("You can turn this confirmation off in Settings.",
comment: "You can turn this confirmation off in Settings.")