Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cases where Rubocop (so Haml-Lint) indents a line too little #433

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

MaxLap
Copy link
Contributor

@MaxLap MaxLap commented Aug 5, 2023

For multiline scripts, if RuboCop's auto-correction didn't indent enough, we could end up with a "negative" indentation and so part of the multiline script would be less indented than the first line of the script, which is never correct.

One example case of this is Layout/MultilineHashBraceLayout with new_line mode. When it fixes, it sometimes just doesn't indent the closing brace..

This could happen with multiline scripts.
@sds sds merged commit 821425f into sds:main Aug 6, 2023
37 checks passed
@MaxLap MaxLap deleted the fix_min_indent branch August 10, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants