After rubocop -A
, one line was "linebroken" by Rubocop and failed with Lint/RequireRangeParentheses
Rubocop should not register offense when there is no endless range in the node.
Actual behaviorIt registers Lint/RequireRangeParentheses when Date ranges have linebreaks, even thou there is no endless range.
Steps to reproduce the problemTo reproduce it, add the following spec to spec/rubocop/cop/lint/require_range_parentheses_spec.rb
:
it 'does not register an offense when there is a line break in a date range' do expect_no_offenses(<<~RUBY) Date.new(1989, 0o1, 0o1)..Date.new(1989, 12, 31) RUBY end
The spec above should pass.
RuboCop versionThe above code fails against master commit 3a634136b9d92cc881bb4e6659093ad48940a4ac
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4