-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
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
redundant_optional_initialization removes opening bracket before property observer #3718
Comments
Interesting, I assume you are actually running I'll take a look at this when I get a chance, however I'm not familiar with how the autocorrect works. This may be a quick fix for someone familiar with it so if someone else wants to take a stab at it please do. |
Hi, I found same problem and created PR to fix this issue :) #3717 |
This is breaking our workflow since our development team uses the Homebrew installation of |
Awaiting PR merge and release. |
We ran into this issue as well. For good measure, we're turning off automatically fixing issues in CI, as the underlying project shouldn't change when publishing builds. |
In case anyone is watching this issue for updates, the 0.45.0 release includes the fix for this issue. Tested it, and looks good for me: |
New Issue Checklist
Describe the bug
The redundant_optional_initialization rule removes the opening bracket before a property observer which causes a syntax issue. For example
is changed to
Complete output when running SwiftLint, including the stack trace and command used
Environment
@iressler
The text was updated successfully, but these errors were encountered: