You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have enabled auto-correction of Metrics/LineLength that was introduced in 0.68. I have also enabled the other recommended cops that were not enabled by default.
Expected behavior
When I run auto-correct, the code should still be valid Ruby code.
Actual behavior
In one instance, a line break was injected in the middle of an integer literal.
I have re-created the issue in a smaller example and this is the diff:
Hi,
I have enabled auto-correction of
Metrics/LineLength
that was introduced in 0.68. I have also enabled the other recommended cops that were not enabled by default.Expected behavior
When I run auto-correct, the code should still be valid Ruby code.
Actual behavior
In one instance, a line break was injected in the middle of an integer literal.
I have re-created the issue in a smaller example and this is the diff:
Steps to reproduce the problem
Create
.rubocop.yml
:Create
rubocop_line_length.rb
:Run
rubocop --only Layout,Metrics/LineLength --auto-correct rubocop_line_length.rb
RuboCop version
The text was updated successfully, but these errors were encountered: