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
Compilation errors after following new rule prefer_self_in_static_references #3768
After implementing the new rule in SwiftLint 0.45.1 prefer_self_in_static_references and running swiftlint --fix our code no longer compiles. This rule is not ignoring some cases where it should not be followed. Please see screenshots:
For now, we can just solve this with a // swiftlint:disable:this but the rule should be fixed to ignore such cases, and prevent build failures.
@SimplyDanny do you think you'd have time to teach your new rule how to handle this case? It might also be useful to comb through the cases reported by OSSCheck in the original PR (#3732 (comment)) to see if there are any other false positives.
Activity
jpsim commentedon Nov 30, 2021
Thanks for the report!
jpsim commentedon Nov 30, 2021
@SimplyDanny do you think you'd have time to teach your new rule how to handle this case? It might also be useful to comb through the cases reported by OSSCheck in the original PR (#3732 (comment)) to see if there are any other false positives.
SimplyDanny commentedon Nov 30, 2021
Sure. I'll have a look.