If all audits in a category are `not applicable` the category should be marked `not applicable`
See original GitHub issueFeature request summary
Currently, if n - 1 audits in a category are marked not applicable
, the category score is based on the one applicable audit. If n audits are marked not applicable
then the category has a score of 0. This feels like the wrong behavior to me, as the site is not necessarily doing anything incorrectly.
One option could be to set a category score as 100 if no audits are applicable, but this also feels wrong as the website is not necessarily doing anything correctly either in this case.
I propose that in this situation we simply display ‘N/A’ as the category score with a grey circle.
I’d be happy to implement this myself.
What is the motivation or use case for changing this? While I’m unaware of any cases where this would happen with current core categories, I think it is very applicable to plugins. This would specifically be true in the case of mistakenly scanning a site using a plugin for a specific technology, when that technology is not being used on the site.
CC: @brendankenny
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Top GitHub Comments
@connorjclark Looks like this was resolved with https://github.com/GoogleChrome/lighthouse/pull/11024?
We have a consensus on the design https://github.com/GoogleChrome/lighthouse/issues/9803#issuecomment-540771705
@jburger424 do you want to take this on?