Conflict Lint/AmbiguousRange
and Style/RedundantParentheses
on complex literals (i.e. string interpolation)
#10230
Labels
When complex literal (i.e. string interpolation) in range literals (
..
and...
), rubocop detectsLint/AmbiguousRange
.But adding parentheses causes
Style/RedundantParentheses
.Lint/AmbiguousRange
seems to be a false positive.Lint/AmbiguousRange
seems to be reasonable,Style/RedundantParentheses
should not be detected.Expected behavior
No offences should be detected.
Actual behavior
Lint/AmbifuousRange detected.
RuboCop version
The text was updated successfully, but these errors were encountered: