-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(linter): add error and warning statistics #18313
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
32576a1
to
c95b990
Compare
c95b990
to
c9c813f
Compare
I'm so sorry for the delay in you receiving a review here @SimeonC! This seems like a good change to me, would it be possible for you to fix up the conflicts please? I'll keep an eye on this one so we can get it merged straight away |
c9c813f
to
c93b0e7
Compare
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 19b4761. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
@JamesHenry I admit I had kinda forgotten about this. Looks like I'm a bit fortunate this time and the "conflicts" are just that git has too many commits and a rebase worked. |
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.
Thanks!
Sorry to be a pain, but can we align it a bit more with ESLint's own output and mention the --fix flag, as well as not have the .
before the parens
Their logic looks like this:
output += chalk[summaryColor].bold([
" ", fixableErrorCount, pluralize(" error", fixableErrorCount), " and ",
fixableWarningCount, pluralize(" warning", fixableWarningCount),
" potentially fixable with the `--fix` option.\n"
].join(""));
It doesn't have to be exactly that (e.g. we don't have the chalk dep in linter I don't think, but potentially fixable with the `--fix` option
is preferable language please
4351cc6
to
3598aa6
Compare
@JamesHenry Thanks for the feedback, I went with updating to match the stylish formatted output as much as possible |
Oh, I see that the success message is used in a lot of other tests. @JamesHenry would you prefer I revert the success message change or update the tests to use the stylish formatted success message? |
@SimeonC I think you can just do find an replace on |
469f59b
to
1e8d513
Compare
@JamesHenry Thanks, did that. |
@SimeonC did you push with |
Yea I did. My git client was failing with something like “unexpected error” and no further information. I’ll fix it up tomorrow as I thought it’d probably be OK and was running out of time, my bad 😅
Haven’t used a push hook before, we’ve always used a precommit hook for that so was unexpected.
|
1e8d513
to
b23c507
Compare
Outputs the error and warning count statistics including how many can be auto-fixed
b23c507
to
19b4761
Compare
Thanks, my git client just shows "Some refs failed to push", when running |
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.
Thanks again @SimeonC!
(cherry picked from commit ec4f7c5)
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Outputs the error and warning count statistics including how many can be auto-fixed, something I found useful before - especially when changing eslint configs which can generate a lot of errors.
I have noticed that this is only useful in 2 cases;
Current Behavior
Linter outputs only whether there are 1 or more errors or warnings.
Expected Behavior
We should get the error/warning count and also the number of fixable error/warnings.