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
statement_indentation is indenting already correct line #7884
Comments
In the same way, I would expect
to be fixed to
but the code is unchanged. @julienfalque, I see your name on every line of the StatementIndentationFixer. |
Yes, I introduced it and made most of the bugfixes since then. I should take time to add comments and maybe refactor things to make it more clear. I'm having a look at this bug for now :) |
Bug report
Description
When running
statement_indentation
on a multiline if, if the first line is missing indentation, the following lines are getting useless extra indentation. This is especially a blocking point for #7813 sinceis fixed to
and then to
When I expect
Runtime version
3.51.0
Configuration file
'statement_indentation' => true
Code snippet that reproduces the problem
The text was updated successfully, but these errors were encountered: