-
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
new_audit: add js-libraries audit, just listing detected js libs #6081
Conversation
cc @rviscomi to review the data format |
Looks good! This should be relatively easy to parse from within BQ. @rviscomi - any thoughts about whether this format makes it possible to flatten the list of frameworks down so it's more readily accessible (as columns)? |
we should also probably bump our version of the detector, last time I checked they were missing ~90% of react sites I tested and a few commits helped lower that significantly |
this is awesome :) |
Yeah with a user-generated function we're able to massage this formatting however we need. This format LGTM. |
yup. already on it: johnmichel/Library-Detector-for-Chrome#118 |
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! 📚📚📚📚📚📚
@@ -0,0 +1,52 @@ | |||
/** | |||
* @license Copyright 2017 Google Inc. All Rights Reserved. |
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.
2018
@@ -0,0 +1,64 @@ | |||
/** | |||
* @license Copyright 2017 Google Inc. All Rights Reserved. |
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.
2018
}); | ||
assert.equal(auditResult1.rawValue, true); | ||
|
||
// duplicates. TODO: consider failing in this case |
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.
TODO: consider failing in this case
it's not that uncommon to have more than one jquery in one page. And if we merge network stuff from iframes, won't it be even more common?
@@ -87,7 +87,7 @@ declare global { | |||
|
|||
export type DetailsItem = string | number | DetailsRendererNodeDetailsJSON | | |||
DetailsRendererLinkDetailsJSON | DetailsRendererCodeDetailJSON | undefined | | |||
boolean | DetailsRendererUrlDetailsJSON; | |||
boolean | DetailsRendererUrlDetailsJSON | null; |
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.
details make me sad
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, but does this new Audit need i18n on it's strings?
Need to update the sample-json with the new audit table? |
cc @housseindjirdeh
output in the LHR looks like this: