False positive inert_defer
with condition compilation
#4615
Labels
bug
Unexpected and reproducible misbehavior.
inert_defer
with condition compilation
#4615
New Issue Checklist
Describe the bug
Rule
inert_defer
is false positive when defer is wrapped in condition compilation. For example:#if os(macOS)
Complete output when running SwiftLint, including the stack trace and command used
Environment
SwiftLint version -
0.50.1
Installation method used - Homebrew
Paste your configuration file - default
Xcode version -
Xcode 14.0.1 Build version 14A400
Run -
swiftlint lint --path Test.swift --no-cache --enable-all-rules
The text was updated successfully, but these errors were encountered: