You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
prefer_self_in_static_references error with static property initializers in extensions #3775
Which Xcode version are you using (check xcodebuild -version)? GM
Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
Activity
jpsim commentedon Jan 21, 2022
Thanks for reporting this issue. Can you please try to see if #3771 fixes this for you?
jpsim commentedon Jan 21, 2022
Never mind, it was easy for me to check thanks to the complete sample you shared, #3771 does not resolve your case.
jpsim commentedon Jan 21, 2022
FYI @SimplyDanny if you want to solve another class of false positives.
SimplyDanny commentedon Jan 21, 2022
Sure. I'll take a look. Sorry for all the issues with this new rule.
jpsim commentedon Jan 21, 2022
No worries, I've learned a lot about the complexity of the Swift language over the years working on SwiftLint.