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

Stop reporting warning as errors when using tap reporter #11110

Assignees
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 formatter Relates to the formatters bundled with ESLint

Comments

@GabrielCousin
Copy link
Contributor

GabrielCousin commented Nov 21, 2018

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 as ok 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!

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Nov 21, 2018
@aladdin-add aladdin-add added bug ESLint is working incorrectly cli Relates to ESLint's command-line interface evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion and removed triage An ESLint team member will look at this issue soon labels Nov 21, 2018
@nzakas
Copy link
Member

nzakas commented Nov 27, 2018

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!

@GabrielCousin
Copy link
Contributor Author

@nzakas description rephrased, I hope it's easier to read! Sorry about that 👍

@eslint-deprecated eslint-deprecated bot added the auto closed The bot closed this issue label Dec 28, 2018
@eslint-deprecated
Copy link

Unfortunately, it looks like there wasn't enough interest from the team
or community to implement this change. While we wish we'd be able to
accommodate everyone's requests, we do need to prioritize. We've found
that issues failing to reach accepted status after 21 days tend to
never be accepted, and as such, we close those issues.
This doesn't mean the idea isn't interesting or useful, just that it's
not something the team can commit to.

Thanks for contributing to ESLint and we appreciate your understanding.

@platinumazure platinumazure removed the auto closed The bot closed this issue label Dec 28, 2018
@platinumazure platinumazure self-assigned this Dec 28, 2018
@platinumazure platinumazure added accepted There is consensus among the team that this change meets the criteria for inclusion formatter Relates to the formatters bundled with ESLint and removed cli Relates to ESLint's command-line interface evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion labels Dec 28, 2018
@platinumazure
Copy link
Member

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 platinumazure reopened this Dec 28, 2018
@GabrielCousin
Copy link
Contributor Author

@platinumazure I’ll submit a PR soon.

GabrielCousin added a commit to GabrielCousin/eslint that referenced this issue Dec 29, 2018
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.
GabrielCousin added a commit to GabrielCousin/eslint that referenced this issue Dec 29, 2018
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.
@nzakas nzakas closed this as completed in 9194f45 Jan 16, 2019
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jul 16, 2019
@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 Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.