-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Performance/RedundantStringChars
cop error in case of implicit …
…receiver ```console echo 'chars.size' | be rubocop --only Performance/RedundantStringChars --stdin bug.rb -d Inspecting 1 file Scanning /bug.rb An error occurred while Performance/RedundantStringChars cop was inspecting /bug.rb:1:0. undefined method `begin_pos' for nil /lib/rubocop/cop/performance/redundant_string_chars.rb:76:in `correction_range' /lib/rubocop/cop/performance/redundant_string_chars.rb:62:in `block in on_send' ```
- Loading branch information
1 parent
378299f
commit ccb9241
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ix_performance_redundant_string_chars_cop_error_in_case_of_implicit_receiver.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 @@ | ||
* [#478](https://github.com/rubocop/rubocop-performance/pull/478): Fix `Performance/RedundantStringChars` cop error in case of implicit receiver. ([@viralpraxis][]) |
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