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
We do not see violations with redundant_optional_initialization rule for the vars inside the fuctions neither does it get autocorrected whereas works ok over the class variables.
classClassName{
....varoptionalVar: String? // This line provides violation and thus corrected during autocorrectfuncfuncName(){varoptionalVar: String? // This doesn't provide violation
....}}
Swiftlint 0.25.1
Swift 4.1
The text was updated successfully, but these errors were encountered:
The problem here is that SourceKit doesn't return key.setter_accessibility for local variables. We use that to know if it's a var or a let, because if it's a let, we shouldn't warn.
We do not see violations with redundant_optional_initialization rule for the vars inside the fuctions neither does it get autocorrected whereas works ok over the class variables.
Swiftlint 0.25.1
Swift 4.1
The text was updated successfully, but these errors were encountered: