Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix false positive in Layout/DotPosition
This fixes a false positive in Layout/DotPosition where an offense would be registered for the trailing style when the receiver was a method call with multiline arguments, and the selector was on the same line as the receiver's closing bracket. For example, before this change, the following offense would be registered: foo( bar ).baz ^ Place the . on the previous line, together with the method call receiver.
- Loading branch information
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
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 @@ | ||
* [#10207](https://github.com/rubocop/rubocop/pull/10207): Fix false positive in Layout/DotPosition when the selector is on the same line as the closing bracket of the receiver. ([@mvz][]) |
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