Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Ruby 2.7's pattern matching for
Style/ConditionalAssignment
This PR supports Ruby 2.7's pattern matching for `Style/ConditionalAssignment`. This `Style/IdenticalConditionalBranches` cop is detecting for `if` and `case`. Therefore, I think about detecting `case-match` with the cop instead of a new cop.
- Loading branch information
Showing
4 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
changelog/new_support_pattern_matching_for_style_conditional_assignment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#9948](https://github.com/rubocop/rubocop/pull/9948): Support Ruby 2.7's pattern matching for `Style/ConditionalAssignment` cop. ([@koic][]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters