-
Notifications
You must be signed in to change notification settings - Fork 57
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
CLI: Treat errors below severity threshold as warnings #696
CLI: Treat errors below severity threshold as warnings #696
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Current approach of severity is aligned with the PHPCS which could be considered as an industry standard. I would not want to break that approach and expectation. |
Ok @ernilambar I agree with you as you tell that is a industry standard. We all want the same results. Which name of the flag do you recommend? something like |
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.
@davidperezgar I'm not sure I fully understand the problem that this is trying to solve. Is the problem that some $results
are removed because of the filtering? That seems reasonable to fix.
However, even with this PR implementation, some results would still be missing, which would be warnings with a lower severity.
I'm not sure that we should "migrate" low-severity errors to warnings. That seems like an odd choice. Would be great to get other people's feedback on this.
Thanks @felixarntz . The thing is that we have errors that could have false positives. That's why we use the severity 7 in plugin submission, so the errors with severity less than 7, won't be a blocker. In our team we try to developers to learn about the errors, and it would be very helpful for the team, show that errors, and they could be a warning. I think is the best scenario. Otherwise, they would find that issues does not a appear and they could not manage to solve them. I agree with @ernilambar to use a new flag to do that. |
I've commited my proposal. To have less severity errors as warnings with the flag: |
A Behat test covering this change would be beneficial. |
Ok, I'm going to make it then. |
I like the approach using a different type. How about this?
WDYT? |
Hello, |
Done! and ready to review! |
It's strange as it works BEHAT tests in my local installation, but is failing. |
…umber-as-a-warning
|
Ok Thanks Nilambar |
Finished! |
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.
Looks good.
CC @felixarntz for re-review. 😊 |
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.
Just one note on WPCS, otherwise LGTM!
Co-authored-by: Felix Arntz <[email protected]>
Thanks! |
Any reason these output types are pluralised? ie. The types are now:
|
Followup PR - #818 |
Fixes #691