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 just started using Rubocop today (v0.52.1) but there seems to be a bug in some rule where it is inserting line breaks/closing braces inappropriately, corrupting the test file.
Out of all my tests, it only seems to have corrupted 8 files, seems related to a multiline let call inside of a describe block.
Expected behavior
Tests that were valid and passing before rubocop --auto-correct should be valid and passing after.
Actual behavior
Steps to reproduce the problem
I deleted lines from the test and re-ran rubocop until I narrowed down what appears to be the culprit.
I just started using Rubocop today (v0.52.1) but there seems to be a bug in some rule where it is inserting line breaks/closing braces inappropriately, corrupting the test file.
Out of all my tests, it only seems to have corrupted 8 files, seems related to a multiline
let
call inside of adescribe
block.Expected behavior
Tests that were valid and passing before
rubocop --auto-correct
should be valid and passing after.Actual behavior
Steps to reproduce the problem
I deleted lines from the test and re-ran rubocop until I narrowed down what appears to be the culprit.
becomes
If it matters, this is my .rubocop.yml:
RuboCop version
The text was updated successfully, but these errors were encountered: