Skip to content

core: extract scoring from reportgenerator into own module#4161

Merged
patrickhulce merged 3 commits intomasterfrom
extract-scoring
Jan 3, 2018
Merged

core: extract scoring from reportgenerator into own module#4161
patrickhulce merged 3 commits intomasterfrom
extract-scoring

Conversation

@paulirish
Copy link
Member

@paulirish paulirish commented Jan 2, 2018

Entirely a copy-paste job except for.... I made generateReportJson a static method on the class.

Partial fix for #2014

* @param {!Object<{score: ?number|boolean|undefined}>} resultsByAuditId
* @return {{score: number, categories: !Array<{audits: !Array<{score: number, result: !Object}>}>}}
*/
static generateReportJson(config, resultsByAuditId) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scoreAllCategories

@patrickhulce patrickhulce merged commit 7b63a66 into master Jan 3, 2018
@patrickhulce patrickhulce deleted the extract-scoring branch January 3, 2018 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants