SwiftLint
SwiftLint copied to clipboard
Condtional Binding Cascade triggered for let and var in the same statement
As of version 0.10.0, conditional binding statements that define both mutable and immutable variables like if let a = a, var b = b will trigger a warning
Repeated `let` statements in conditional binding cascade should be avoided.
I find this is a necessary pattern at times and I'm guessing it should be allowed by the linter.
Duplicate of #642
Sorry @norio-nomura for missing the previous issue (searched on the open ones) ! Thanks for the fix! 👍
@norio-nomura I don't want to open an issue on this but what about using multiple 'let' value in a single guard statement? right now it showing a warning tnx
We've removed that rule