Skip to content

Open new scope only for trailing closures#6492

Merged
SimplyDanny merged 1 commit intomainfrom
try-in-argument
Feb 13, 2026
Merged

Open new scope only for trailing closures#6492
SimplyDanny merged 1 commit intomainfrom
try-in-argument

Conversation

@SimplyDanny
Copy link
Copy Markdown
Collaborator

Fixes #6491.

@SwiftLintBot
Copy link
Copy Markdown

SwiftLintBot commented Feb 13, 2026

46 Messages
📖 Building this branch resulted in a binary size of 27252.32 KiB vs 27252.48 KiB when built on main (-1% smaller).
📖 Linting Aerial with this PR took 0.78 s vs 0.81 s on main (3% faster).
📖 Linting Alamofire with this PR took 1.05 s vs 1.02 s on main (2% slower).
📖 Linting Brave with this PR took 7.13 s vs 7.21 s on main (1% faster).
📖 Linting DuckDuckGo with this PR took 25.19 s vs 25.2 s on main (0% faster).
📖 Linting Firefox with this PR took 11.59 s vs 11.61 s on main (0% faster).
📖 Linting Kickstarter with this PR took 8.02 s vs 7.99 s on main (0% slower).
📖 Linting Moya with this PR took 0.47 s vs 0.45 s on main (4% slower).
📖 Linting NetNewsWire with this PR took 2.46 s vs 2.44 s on main (0% slower).
📖 Linting Nimble with this PR took 0.68 s vs 0.68 s on main (0% slower).
📖 Linting PocketCasts with this PR took 7.58 s vs 7.61 s on main (0% faster).
📖 Linting Quick with this PR took 0.46 s vs 0.41 s on main (12% slower).
📖 Linting Realm with this PR took 3.26 s vs 3.25 s on main (0% slower).
📖 Linting Sourcery with this PR took 1.84 s vs 1.86 s on main (1% faster).
📖 Linting Swift with this PR took 4.49 s vs 4.5 s on main (0% faster).
📖 Linting SwiftLintPerformanceTests with this PR took 0.34 s vs 0.33 s on main (3% slower).
📖 Linting VLC with this PR took 1.14 s vs 1.16 s on main (1% faster).
📖 Linting Wire with this PR took 18.32 s vs 18.39 s on main (0% faster).
📖 Linting WordPress with this PR took 12.41 s vs 12.4 s on main (0% slower).
📖 This PR fixed a violation in DuckDuckGo: /SharedPackages/BrowserServicesKit/Tests/PixelKitTests/WideEventStoringTests.swift:92:66: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in DuckDuckGo: /SharedPackages/BrowserServicesKit/Tests/SubscriptionTests/Storage/SubscriptionTokenKeychainStorageTests.swift:382:52: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in DuckDuckGo: /SharedPackages/BrowserServicesKit/Tests/SubscriptionTests/Storage/SubscriptionTokenKeychainStorageTests.swift:399:38: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in DuckDuckGo: /SharedPackages/BrowserServicesKit/Tests/SyncDataProvidersTests/Identities/SyncableIdentitiesValidationTests.swift:78:72: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in DuckDuckGo: /SharedPackages/DataBrokerProtectionCore/Tests/DataBrokerProtectionCoreTests/MapperToModelTests.swift:88:48: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in DuckDuckGo: /SharedPackages/DataBrokerProtectionCore/Tests/DataBrokerProtectionCoreTests/BrokerProfileScanSubJobTests.swift:759:90: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in DuckDuckGo: /SharedPackages/DataBrokerProtectionCore/Tests/DataBrokerProtectionCoreTests/BrokerProfileScanSubJobTests.swift:790:92: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in DuckDuckGo: /SharedPackages/DataBrokerProtectionCore/Tests/DataBrokerProtectionCoreTests/BrokerProfileScanSubJobTests.swift:827:92: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Firefox: /BrowserKit/Tests/JWTKitTests/JWTNoneAlgorithmTests.swift:20:49: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Firefox: /BrowserKit/Tests/JWTKitTests/JWTEncoderTests.swift:100:49: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Firefox: /BrowserKit/Tests/SummarizeKitTests/SSEDataParserTests.swift:103:37: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework-iOSTests/Kickstarter-iOS/Features/PledgedProjectsOverview/PPOViewModelTests.swift:26:34: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework-iOSTests/Kickstarter-iOS/Features/PledgedProjectsOverview/PPOViewModelTests.swift:57:35: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework-iOSTests/Kickstarter-iOS/Features/PledgedProjectsOverview/PPOViewModelTests.swift:90:39: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework-iOSTests/Kickstarter-iOS/Features/PledgedProjectsOverview/PPOViewModelTests.swift:142:40: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework-iOSTests/Kickstarter-iOS/Features/PledgedProjectsOverview/PPOViewModelTests.swift:208:29: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework-iOSTests/Kickstarter-iOS/Features/PledgedProjectsOverview/PPOViewModelTests.swift:408:35: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Realm: /Realm/ObjectServerTests/SwiftAsymmetricSyncServerTests.swift:162:56: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Realm: /Realm/ObjectServerTests/SwiftAsymmetricSyncServerTests.swift:169:67: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Wire: /wire-ios-data-model/Tests/Authentication/EAR/EARServiceTests.swift:251:58: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Wire: /wire-ios-data-model/Tests/Authentication/EAR/EARServiceTests.swift:278:56: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Wire: /wire-ios-data-model/Tests/Authentication/EAR/EARServiceTests.swift:402:60: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Wire: /wire-ios-data-model/Tests/Authentication/EAR/EARServiceTests.swift:768:55: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Wire: /wire-ios-sync-engine/Tests/Source/SessionManager/URLActionTests.swift:141:58: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in Wire: /WireNetwork/Tests/WireNetworkTests/APIs/Rest/TeamsAPI/TeamsAPITests.swift:455:103: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in WordPress: /Tests/KeystoneTests/Tests/Features/Notifications/MarkAsSpamActionTests.swift:52:33: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)
📖 This PR fixed a violation in WordPress: /Tests/KeystoneTests/Tests/Features/Notifications/TrashCommentActionTests.swift:51:34: Warning: Superfluous 'throws'; body of this function does not throw any error (unneeded_throws_rethrows)

Generated by 🚫 Danger

@SimplyDanny SimplyDanny merged commit cc3b22c into main Feb 13, 2026
27 checks passed
@SimplyDanny SimplyDanny deleted the try-in-argument branch February 13, 2026 16:32
nadeemnali pushed a commit to nadeemnali/SwiftLint that referenced this pull request Feb 26, 2026
nadeemnali pushed a commit to nadeemnali/SwiftLint that referenced this pull request Feb 26, 2026
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.

unneeded_throws_rethrows false positive when try is in parameter in a function with trailing closure

2 participants