Skip to content

Commit

Permalink
Add ReduceBooleanRule (realm#2675)
Browse files Browse the repository at this point in the history
* [reduce_boolean] Implement rule

* [reduce_boolean] Improve reason text

* [reduce_boolean] Fix new violations

* [reduce_boolean] Add CHANGELOG.md entry

* [reduce_boolean] Shorten rule name

* [reduce_boolean] Use regular map instead of compactMap

* [reduce_boolean] Match only possible syntax kinds
  • Loading branch information
xavierLowmiller authored and Tomas Camin committed Jun 17, 2019
1 parent a6463d9 commit 73b3156
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
#### Enhancements

* Add `reduce_boolean` rule to prefer simpler constructs over `reduce(Boolean)`.
* Add `reduce_boolean` rule to prefer simpler constructs over `reduce(Boolean)`.
[Xavier Lowmiller](https://github.com/xavierLowmiller)
[#2675](https://github.com/realm/SwiftLint/issues/2675)

Expand Down

0 comments on commit 73b3156

Please sign in to comment.