You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing tools like eslint and instanbul have comment marks to tell the test runner to ignore some or many errors in the next sentence or in a range of lines in the code. Lighthouse should have it too. I can help with suggestions and feedback.
What is the motivation or use case for changing this?
I am using lighthouse as part of my CI/CD pipeline, with lighthouse-ci. The lighthouse step validates every new added line of code, and the developer must fix the issues or add skip configuration for the whole page in that URL.
Sometimes, in specific contexts, auditions results in "false-fails" because user perception is subjective. One example is the color contrast rule, which is very restrict, but as this post issues in Myth 1, the metric has issues with high luminance colors.
How is this beneficial to Lighthouse?
It reduces time-consuming adjusts in config files that will improve lighthouse developer experience, allowing it to be used more effectively and efficiently during development process.
Some related issues that this change could help with:
But yeah a lot of the things we flag can't be mapped back to a specific code location. And also we analyze production assets, which probably should had comments minified out already.
So we're not gonna pursue this. Appreciate the well-written feature request though!
Feature request summary
Testing tools like eslint and instanbul have comment marks to tell the test runner to ignore some or many errors in the next sentence or in a range of lines in the code. Lighthouse should have it too. I can help with suggestions and feedback.
Here are some examples of ignore comments:
with html
What is the motivation or use case for changing this?
I am using lighthouse as part of my CI/CD pipeline, with lighthouse-ci. The lighthouse step validates every new added line of code, and the developer must fix the issues or add skip configuration for the whole page in that URL.
Sometimes, in specific contexts, auditions results in "false-fails" because user perception is subjective. One example is the color contrast rule, which is very restrict, but as this post issues in Myth 1, the metric has issues with high luminance colors.
How is this beneficial to Lighthouse?
It reduces time-consuming adjusts in config files that will improve lighthouse developer experience, allowing it to be used more effectively and efficiently during development process.
Some related issues that this change could help with:
GoogleChrome/lighthouse-ci#208
GoogleChrome/lighthouse-ci#511
The text was updated successfully, but these errors were encountered: