Compiler Directives makes opening brace rule violation missed in subsequent function #3712
Closed
2 tasks done
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
If I have a function containing a compiler directive and a function below that should trigger the opening brace rule, it gets missed.
Complete output when running SwiftLint, including the stack trace and command used
Environment
SwiftLint version: 0.44.0
Installation method used: Downloaded from the
portable_swiftlint.zip
from the 0.44.0 release tagPaste your configuration file: None/default/anything with
opening_brace
enabledAre you using nested configurations? No
Which Xcode version are you using? 12.5.1 (although not relevant)
Do you have a sample that shows the issue?
The
openingBraceViolation
function does not trigger the opening_brace rule as expected.The text was updated successfully, but these errors were encountered: