Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…definition Fixes #10421. This PR makes `Style/DefWithParentheses` aware of endless method definition. `def foo() do_something end` will continue to allow because `def foo do_something end` is a syntax error. On the other hand, be aware that the endless method definition's parentheses can be omitted.
- Loading branch information
Showing
3 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...gelog/fix_make_style_def_with_parentheses_aware_of_endless_method_definition.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 @@ | ||
* [#10421](https://github.com/rubocop/rubocop/issues/10421): Make `Style/DefWithParentheses` aware of endless method definition. ([@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