Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
in
pattern syntax for Layout/CaseIndentation
This PR supports Ruby 2.7's `in` pattern syntax for `Layout/CaseIndentation`. It is extending `Layout/CaseIndentation` cop because I think it's expected that the indentation layout will be the same for `case ... when` and `case ... in`.
- Loading branch information
Showing
4 changed files
with
741 additions
and
288 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
changelog/new_support_in_pattern_syntax_for_layout_case_indentation.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 @@ | ||
* [#9818](https://github.com/rubocop/rubocop/pull/9818): Support Ruby 2.7's `in` pattern syntax for `Layout/CaseIndentation`. ([@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
Oops, something went wrong.