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

Chore: use precalculated counts in codeframe formatter #8296

Merged
merged 1 commit into from Mar 22, 2017

Conversation

vitorbal
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:
Chore. See below.

What changes did you make? (Give an overview)
Updated the codeframe formatter to use the precalculated error and warning counts, just like it was done in #8251.

Is there anything you'd like reviewers to focus on?
I think not!

@eslintbot
Copy link

LGTM


formatter(code);

assert.equal(chalkStub.yellow.bold.callCount, 0);
assert.equal(chalkStub.red.bold.callCount, 1);
});

it("should return bold yellow summary when there are only warnings", () => {
Copy link
Member Author

@vitorbal vitorbal Mar 20, 2017

Choose a reason for hiding this comment

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

The diff is kind of misleading here. Just to clarify, this was not removed, it was moved up to a separate describe section above.

@vitorbal
Copy link
Member Author

Hmm, I'm not sure I understand why appveyor/pr is currently failing 🤔

AppVeyor was unable to build non-mergeable pull request

@ilyavolodin
Copy link
Member

I think we should be able to ignore it. Since branch build completed on both appveyor as well as travis.

@not-an-aardvark not-an-aardvark added the chore This change is not user-facing label Mar 20, 2017
@vitorbal vitorbal merged commit 0491572 into master Mar 22, 2017
@vitorbal vitorbal deleted the codeframe-precalc-counts branch March 22, 2017 14:15
@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
archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants