Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR fixes the following build error. ```console bundle exec rubocop (snip) Offenses: lib/rubocop/cop/mixin/preceding_following_alignment.rb:96:9: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. range.source[-1] == '=' && line[range.last_column - 1] == '=' || ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/cop/mixin/preceding_following_alignment.rb:101:9: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. range.source == '<<' && line[range.last_column - 1] == '=' || ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/cop/mixin/preceding_following_alignment.rb:102:11: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. range.source[-1] == '=' && line[(range.last_column - 2)..(range.last_column - 1)] == '<<' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/cop/mixin/preceding_following_alignment.rb:102:101: C: Layout/LineLength: Line is too long. [101/100] (range.source[-1] == '=' && line[(range.last_column - 2)..(range.last_column - 1)] == '<<') ^ 1304 files inspected, 4 offenses detected, 3 offenses corrected ``` https://github.com/rubocop/rubocop/runs/3453863216
- Loading branch information