-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
core(category): add manualDescription #5100
Conversation
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.
should we add a check to validateCategories
that any manual audit has a weight of 0?
lighthouse-core/config/config.js
Outdated
@@ -62,7 +62,8 @@ function validateCategories(categories, audits, groups) { | |||
throw new Error(`could not find ${audit.id} audit for category ${categoryId}`); | |||
} | |||
|
|||
if (categoryId === 'accessibility' && !audit.group) { | |||
const auditImpl = audits.find(a => a.implementation.meta.name === audit.id).implementation; |
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.
maybe get rid of auditIds
above and use auditImpl
for both this and the check of audit.id
above?
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.
done
@brendankenny feedback addressed! |
ya mind if I do that after #5105 ? conflicting junk |
sure, but maybe add a TODO? or something to remember it |
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.
LGTM
makes the change for manualDescription instead of a manual group
ref #5008 #4333