We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftLint erroneously raises a closure_spacing warning when using the new Swift Regex literal syntax which includes an opening and closing bracket.
closure_spacing
Regex
let r = /\{\}/ // ⚠️ Closure Spacing Violation: Closure expressions should have a single space inside each brace. (closure_spacing)
$ swiftlint main.swift:1:10: warning: Closure Spacing Violation: Closure expressions should have a single space inside each brace. (closure_spacing)
swiftlint version
only_rules - closure_spacing
xcodebuild -version
echo "let r = /\{\}/" | swiftlint lint --no-cache --use-stdin --enable-all-rules
The text was updated successfully, but these errors were encountered:
Migrate ClosureSpacingRule to SwiftSyntax (#4092)
3037946
Fixes #4090. Continued from #4091.
Fixed in #4092.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
New Issue Checklist
Describe the bug
SwiftLint erroneously raises a
closure_spacing
warning when using the new SwiftRegex
literal syntax which includes an opening and closing bracket.Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? 0.47.1xcodebuild -version
)? Build version 14A5294eThe text was updated successfully, but these errors were encountered: