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: indent regression with function calls (fixes #7732, fixes #7733) #7734

Merged
merged 1 commit into from Dec 12, 2016

Conversation

not-an-aardvark
Copy link
Member

@not-an-aardvark not-an-aardvark commented Dec 9, 2016

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 inindent in which if a configuration did not specify a value for the CallExpression option, it would get interpreted as CallExpression: 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.

@not-an-aardvark not-an-aardvark added accepted There is consensus among the team that this change meets the criteria for inclusion bug ESLint is working incorrectly patch candidate This issue may necessitate a patch release in the next few days regression Something broke rule Relates to ESLint's core rules labels Dec 9, 2016
@eslintbot
Copy link

LGTM

@mention-bot
Copy link

@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.

Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Copy link
Member

@platinumazure platinumazure left a 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!).

@eslintbot
Copy link

LGTM

Copy link
Member

@btmills btmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kaicataldo kaicataldo merged commit 0ad4d33 into master Dec 12, 2016
@not-an-aardvark not-an-aardvark deleted the indent-again branch December 12, 2016 22:13
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly patch candidate This issue may necessitate a patch release in the next few days regression Something broke rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants