As user whose trying out Code PushUp for the first time, I want an easy to read (i.e. not raw JSON) report after I've succesfully ran the CLI for the first time (based on getting started docs).
Based on discussion in #93
General notes
- scores (0-1) formatted as
Math.round(score * 100) (0-100, only integers) - links to headings have to slugify the heading text
- everything that's in
<details> (including <summary>) must use HTML formatting, Markdown won't be rendered - score colours:
- category and groups scores are annotated with 🟢, 🟡, or 🔴
- audit value and score are annotated with 🟩, 🟨, or 🟥
- determined by score value:
score < 0.5 => red0.5 <= score < 0.9 => yellowscore >= 0.9 => green
Structure
Example
Follows below line...
Code PushUp report
🏷️ Categories
Performance
🟢 Score: 92
Code style
🟡 Score: 54
🛡️ Audits
Largest Contentful Paint (Lighthouse)
🟨 1.5 s (score: 75)
📖 Docs
Disallow missing key props in iterators/collection literals (ESLint)
🟥 1 error (score: 0)
Issues
ESLint rule jsx-key, from react plugin. 📖 Docs
Require or disallow method and property shorthand syntax for object literals (ESLint)
🟥 4 warnings (score: 0)
Issues
ESLint rule object-shorthand. 📖 Docs
Require let or const instead of var (ESLint)
🟩 0 (score: 100)
ESLint rule no-var. 📖 Docs
About
Report was created by Code PushUp on Tue Oct 24 2023 09:38:51 GMT+0200 (Central European Summer Time).
| Commit | Version | Duration | Plugins | Categories | Audits |
|---|
| Implement todos list (3ac01d1) | 0.1.0 | 1.6 s | 2 | 3 | 25 |
The following plugins were run:
| Plugin | Audits | Version | Duration |
|---|
| ESLint | 20 | 0.1.0 | 0.3 s |
| Lighthouse | 5 | 0.1.0 | 1.2 s |
As user whose trying out Code PushUp for the first time, I want an easy to read (i.e. not raw JSON) report after I've succesfully ran the CLI for the first time (based on getting started docs).
Based on discussion in #93
General notes
Math.round(score * 100)(0-100, only integers)<details>(including<summary>) must use HTML formatting, Markdown won't be renderedscore < 0.5=> red0.5 <= score < 0.9=> yellowscore >= 0.9=> greenStructure
error=> 🚨,warning=>info=> ℹ️ (or nothing?)7if only start line,7-10if both (different) start and end lines,-if no linesnew Date().toString()n/a)Example
Follows below line...
Code PushUp report
🏷️ Categories
Performance
🟢 Score: 92
keyprops in iterators/collection literals (ESLint) - 1 errorCode style
🟡 Score: 54
letorconstinstead ofvar(ESLint) - 0🛡️ Audits
Largest Contentful Paint (Lighthouse)
🟨 1.5 s (score: 75)
📖 Docs
Disallow missing
keyprops in iterators/collection literals (ESLint)🟥 1 error (score: 0)
Issues
src/components/TodoList.jsxESLint rule jsx-key, from react plugin. 📖 Docs
Require or disallow method and property shorthand syntax for object literals (ESLint)
🟥 4 warnings (score: 0)
Issues
src/hooks/useTodos.jssrc/hooks/useTodos.jssrc/hooks/useTodos.jsESLint rule object-shorthand. 📖 Docs
Require
letorconstinstead ofvar(ESLint)🟩 0 (score: 100)
ESLint rule no-var. 📖 Docs
About
Report was created by Code PushUp on Tue Oct 24 2023 09:38:51 GMT+0200 (Central European Summer Time).
0.1.0The following plugins were run:
0.1.00.1.0