Repository navigation
Conversation
Generated by 🚫 Danger |
Contributor
Author
SimplyDanny
approved these changes
Nov 29, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
unused_parameterreports a used parameter as unused, and can remove its name during autocorrection, when it is passed to a module-selected keyword-named function such asModule::as(x)orModule::is(x).Update the SwiftPM and Bazel SwiftSyntax pins to
605.0.0-prerelease-2026-09-15, which includes the parser fix from @no-hup in swiftlang/swift-syntax#3406. Add separate non-triggering examples for both calls and a changelog entry. Once the parser recognizes these calls, the existing rule correctly tracks the parameter references; no rule algorithm change is needed.Fixes #6816.
Validation on macOS arm64 with Apple Swift 6.3.2:
UnusedParameterRuleGeneratedTestsfails on the two new examples, including their autocorrection checks. With the new pin, the same test passes.swift test --jobs 4: 1,112 tests in 377 suites passed..build/debug/swiftlint lint --quiet --strict --no-cache: passed.Xcode, Bazel, and Linux/Docker tests were not run locally and remain for CI.