You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
swiftlint --fix ignores disable comment for redundant_nil_coalescing #6465
When running swiftlint --fix, the redundant_nil_coalescing rule removes both the allegedly redundant ?? nil code AND the associated // swiftlint:disable:this redundant_nil_coalescing comment. This is problematic because:
The disable comment should prevent any auto-fix from being applied
The auto-fix silently removes the developer's explicit disable comment
Environment
SwiftLint version: 0.63.2
Installation method: mise
Xcode version: Xcode 26.2 (Build version 17C52)
Swift version: Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
The line should remain unchanged because the redundant_nil_coalescing rule is explicitly disabled for this line via the // swiftlint:disable:this redundant_nil_coalescing comment.
Activity