-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
bugUnexpected and reproducible misbehavior.Unexpected and reproducible misbehavior.
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Bug Description
When configuring redundant_discardable_let with ignore_swiftui_view_bodies: true the rule still emits a warning when the let _ = is inside condition:
// This triggers a violation:
@ViewBuilder func makeView() -> some View {
if true {
let _ = assertionFailure("This should not trigger")
}
}Mention the command or other SwiftLint integration method that caused the issue. Include stack traces or command output.
$ swiftlint lint [--no-cache] [--fix]Environment
- SwiftLint version: 0.61.0
- Xcode version: 16.4
- Installation method used: Mint
- Configuration file:
redundant_discardable_let:
ignore_swiftui_view_bodies: trueReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugUnexpected and reproducible misbehavior.Unexpected and reproducible misbehavior.