Alfons Hoogervorst
Alfons Hoogervorst
A few changes to make Cassette a bit more Swift-friendly.
WIP: This is going to resolve #6072
This introduces a new rule that detects nested switches that reference the same variable. This prevents needless indentation. The canonical example is: ``` switch a { case .one: switch b...
Adds an idiomatic rule that suggests using `reduce(into:)` when a `for ... in` loop is encountered that references a collection variable (of type `Array`, `Set` or `Dictionary`). This is mostly...