Skip to content

Add new redundant_final rule - #6597

Merged
SimplyDanny merged 1 commit into
mainfrom
redundant-final
Apr 15, 2026
Merged

SimplyDanny merged 1 commit into
mainfrom
redundant-final

Conversation

@SimplyDanny

Copy link
Copy Markdown
Collaborator

Resolves #6407.

Credit for the base implementation goes to @william-laverty.

@SwiftLintBot

Copy link
Copy Markdown
38 Warnings
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/FilePresenter.swift:319:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/FilePresenter.swift:326:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/BrowserServicesKit/Sources/BrowserServicesKit/Watchdog/Watchdog.swift:26:8: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/BrowserServicesKit/Sources/Networking/Auth/OAuthClient.swift:151:1: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/VPN/Sources/VPN/Diagnostics/NetworkProtectionConnectionBandwidthAnalyzer.swift:26:1: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/VPN/Sources/VPN/Diagnostics/KeyExpirationTester.swift:27:1: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AdAttribution/AdAttributionPixelReporter.swift:25:1: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/SharedTestUtils/Mocks/Core/Statistics/MockPixelFiring.swift:42:1: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Firefox: /BrowserKit/Sources/TestKit/SwiftTestingHelper.swift:47:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/DictionaryStorage.swift:287:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/DictionaryStorage.swift:295:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/SwiftNativeNSArray.swift:444:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/SetStorage.swift:231:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/VarArgs.swift:484:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/KeyPath.swift:1032:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:145:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:158:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:193:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:199:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:203:27: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:210:27: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:238:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:250:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:306:12: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/StringStorage.swift:307:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/StringStorage.swift:309:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/StringStorage.swift:315:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/StringStorage.swift:800:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/StringStorage.swift:802:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/StringStorage.swift:809:3: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/Concurrency/MainActor.swift:20:21: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Swift: /stdlib/public/Concurrency/MainActor.swift:42:21: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Wire: /wire-ios/Wire-iOS/Sources/UserInterface/Conversation/MessagesIndividualUpdatesFactory.swift:23:1: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Wire: /WireMessaging/Sources/WireMessagingData/WireDrive/WireDriveNodeUploadManager.swift:23:9: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Wire: /WireMessaging/Sources/WireMessagingData/WireDrive/NodesAPI/NodesAPI.swift:28:9: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in Wire: /wire-ios-data-model/Source/MLS/SubconversationGroupIDRepository.swift:68:8: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/Services/BlockEditorCache.swift:6:1: Warning: final is redundant (redundant_final)
⚠️ This PR introduced a violation in WordPress: /Tests/KeystoneTests/Tests/Utility/ApplicationPasswordsRepositoryTests.swift:599:9: Warning: final is redundant (redundant_final)
19 Messages
📖 Building this branch resulted in a binary size of 27574.23 KiB vs 27560.34 KiB when built on main (0% larger).
📖 Linting Aerial with this PR took 0.83 s vs 0.82 s on main (1% slower).
📖 Linting Alamofire with this PR took 1.06 s vs 1.06 s on main (0% slower).
📖 Linting Brave with this PR took 7.41 s vs 7.4 s on main (0% slower).
📖 Linting DuckDuckGo with this PR took 28.47 s vs 28.44 s on main (0% slower).
📖 Linting Firefox with this PR took 12.3 s vs 12.31 s on main (0% faster).
📖 Linting Kickstarter with this PR took 8.46 s vs 8.51 s on main (0% faster).
📖 Linting Moya with this PR took 0.43 s vs 0.44 s on main (2% faster).
📖 Linting NetNewsWire with this PR took 2.66 s vs 2.66 s on main (0% slower).
📖 Linting Nimble with this PR took 0.65 s vs 0.7 s on main (7% faster).
📖 Linting PocketCasts with this PR took 8.12 s vs 7.95 s on main (2% slower).
📖 Linting Quick with this PR took 0.46 s vs 0.44 s on main (4% slower).
📖 Linting Realm with this PR took 3.03 s vs 3.0 s on main (0% slower).
📖 Linting Sourcery with this PR took 1.94 s vs 1.86 s on main (4% slower).
📖 Linting Swift with this PR took 4.75 s vs 4.79 s on main (0% faster).
📖 Linting SwiftLintPerformanceTests with this PR took 0.36 s vs 0.31 s on main (16% slower).
📖 Linting VLC with this PR took 1.29 s vs 1.25 s on main (3% slower).
📖 Linting Wire with this PR took 19.18 s vs 19.14 s on main (0% slower).
📖 Linting WordPress with this PR took 12.93 s vs 12.93 s on main (0% slower).

Generated by 🚫 Danger

@SimplyDanny
SimplyDanny merged commit f242859 into main Apr 15, 2026
20 checks passed
@SimplyDanny
SimplyDanny deleted the redundant-final branch April 15, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rule Request: Redundant final for actors

3 participants