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
Stop reporting warning as errors when using tap reporter #11110
Stop reporting warning as errors when using tap reporter #11110
Comments
Thanks for the issue. Can you please update the description to include the actual problem you're seeing? (Referencing another issue means people need to jump around and it's much easier to have all of the information in one issue.) Thanks! |
@nzakas description rephrased, I hope it's easier to read! Sorry about that 👍 |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
Reopening, reclassifying as formatter issue, and marking as accepted. I don't think this was something we intentionally designed as such and it's definitely not ideal that warnings and errors can't be distinguished in this formatter. |
@platinumazure I’ll submit a PR soon. |
When using TAP reporter, both messages with severity of 1 or 2 were listed as errors (`not ok`). This changes aims at reporting warnings as `ok` messages.
When using TAP reporter, both messages with severity of 1 or 2 were listed as errors (`not ok`). This changes aims at reporting warnings as `ok` messages.
The version of ESLint you are using.
2.7.0
The problem you want to solve.
I am a sass-lint user (which relies on eslint-formaters)
When using the tap formatter, all messages are flagged as
not ok
no matter their severity. Messages with severity of 1 should be flagged asok
and should contain the warning message. I feel like it's odd to have a failing test result despite all tests are passing but containing some warnings.However, this seems to be the expected behavior according to tests written in the project.
Your take on the correct solution to problem.
The issue is located in this file: https://github.com/eslint/eslint/blob/master/lib/formatters/tap.js#L53
I think it would be a good think for iterate on each message and flag the "message key" as "not ok" if a
severity of 2 is found.
Are you willing to submit a pull request to implement this change?
Definitely, I just wanted to be sure this actual problem was not something "by design"
Thanks!
The text was updated successfully, but these errors were encountered: