Skip to content

Commit

Permalink
Merge pull request #2372 from marcelofabri/identical_operands
Browse files Browse the repository at this point in the history
Add identical_operands opt-in rule
  • Loading branch information
marcelofabri committed Sep 10, 2018
2 parents 8fd15b0 + be60504 commit c9f315a
Show file tree
Hide file tree
Showing 11 changed files with 694 additions and 3 deletions.
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ opt_in_rules:
- untyped_error_in_catch
- vertical_parameter_alignment_on_call
- yoda_condition
- identical_operands

identifier_name:
excluded:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
[Dalton Claybrook](https://github.com/daltonclaybrook)
[#2369](https://github.com/realm/SwiftLint/issues/2369)

* Add `identical_operands` opt-in rule to validate that operands are different
expressions in comparisons.
[Marcelo Fabri](https://github.com/marcelofabri)
[#1371](https://github.com/realm/SwiftLint/issues/1371)

#### Bug Fixes

* Fix `comma` rule false positives on object literals (for example, images).
Expand Down
Loading

0 comments on commit c9f315a

Please sign in to comment.