-
Notifications
You must be signed in to change notification settings - Fork 7
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
Exit code is 1 even when all violations are marked as TODOs #394
Comments
Hey @bartocc, sorry you're having an issue. Let me take a peek and see if I can reproduce. |
It looks like a PR was merged 25 days ago that changes the way errors are calculated, and thus what exit code is subsequently reported. I'll have to think on this a bit to see if there's any way to address this. |
To unblock yourself @bartocc, you could pin |
hey @scalvert , thx for investigating this! Hope you'll find the proper fix for this! Thx again |
I noticed that |
2022-11-16 edit: |
I opened an issue in eslint. I can utilize the workaround, but it feels wrong to exit in a formatter directly. |
I'm seeing exit code 1 when using |
I think the eslint-formatter-todo/src/formatter.ts Line 278 in 79792ef
|
In addition to previous comment, the issue with When the --quiet flag is present eslint filters out non-error results before passing the results into the formater, which means https://github.com/eslint/eslint/blob/740b20826fadc5322ea5547c1ba41793944e571d/lib/cli.js#L427-L443 |
FYI I was able to get zero exit codes with and without
|
😭 I'm running into this too after the beautiful release from this package to support the |
I've edited my previous comment to confirm that I also see exit code 1 with the |
I went ahead and created a separate issue for the |
Also created a separate issue for the |
@scalvert looks like this is something that will need to be fixed in this package, probably with a direct exit :/ |
Yep. Totally cool with pull requests to help here! |
Hey folks. Is this still an issue with ESLint@9 ? and if so, did you find a workaround that you might be using in your codebase ? We are still stuck with [email protected] for the moment |
Co-authored-by: Bryan Mishkin <[email protected]>
Steps to reproduce
This causes my CI to fail, and I don't think the env var
FORMAT_TODO_AS
will be of any help here 🧐Am I missing something?
Using ESLint 8.25 in an ember.js 4.3 project
The text was updated successfully, but these errors were encountered: