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: indent
regression with function calls (fixes #7732, fixes #7733)
#7734
Conversation
LGTM |
@not-an-aardvark, thanks for your PR! By analyzing the history of the files in this pull request, we identified @gyandeeps, @vitorbal and @BYK to be potential reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I agree we need to add some more test fixtures so we can feel more confident about this rule (though I also wouldn't say no to doing a major release soon so we can use the new version!).
e1b139b
to
dab1861
Compare
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is the purpose of this pull request? (put an "X" next to item)
[x] Bug fix
See #7732 and #7733
What changes did you make? (Give an overview)
This fixes a regression in
indent
in which if a configuration did not specify a value for theCallExpression
option, it would get interpreted asCallExpression: first
for object and array arguments.Is there anything you'd like reviewers to focus on?
I think we should add some additional fixtures or smoketests to the indent rule, even if the fixture contains a large codebase in itself. The rule has several hundred tests, but it seems like we're still missing cases. If we add more fixtures, we can be more confident that a particular change isn't going to break anything.
Also, I'm wondering if it would be possible to separate out the breaking parts of #7618 and land the indent rewrite without waiting for a major update. It looks like the indent rule is getting difficult to effectively maintain -- we've broken things the last few times we've tried to change it.