control_statement
asks to illegally unwrap guard.
#5846
Labels
bug
Unexpected and reproducible misbehavior.
control_statement
asks to illegally unwrap guard.
#5846
New Issue Checklist
Bug Description
control_statement
checks to ensure the control statement is not unnecessarily wrapped in parenthesis. However, parenthesis are required in certain cases for control statements, such as when the statement itself consists of braces, to disambiguate the braces from the control operator's braces. The following example illustrates wherecontrol_statement
demands the removal of parentheses which would render the statement illegal in the language.Mention the command or other SwiftLint integration method that caused the issue. Include stack traces or command output.
Environment
swiftlint version
to be sure): 0.57.0xcodebuild -version
to be sure): 16.1, 16B40The text was updated successfully, but these errors were encountered: