Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a false positive for
Layout/SpaceAroundMethodCallOperator
This PR fixes the following false positive for `Layout/SpaceAroundMethodCallOperator` cop when there is a space between `.` operator and a comment. ```ruby foo. # comment bar.baz ``` ```console % rubocop --only Layout/SpaceAroundMethodCallOperator (snip) Inspecting 1 file C Offenses: example.rb:1:5: C: Layout/SpaceAroundMethodCallOperator: Avoid using spaces around a method call operator. foo. # comment ^ 1 file inspected, 1 offense detected ``` Also this PR does not add to the changelog entry because `Layout/SpaceAroundMethodCallOperator` cop has not been released yet.
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
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
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