Skip to content

Commit

Permalink
refactor(utils): switch score columns in comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Jun 28, 2024
1 parent afeeb8e commit 04b5130
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 55 deletions.
18 changes: 9 additions & 9 deletions e2e/cli-e2e/tests/__snapshots__/compare.report-diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

## 🏷️ Categories

|🏷️ Category|Current score|Previous score|🔄 Score change|
|🏷️ Category|Previous score|Current score|🔄 Score change|
|:--|:--:|:--:|:--:|
|Code style|🟡 **77**|🟡 54|![↑ +23.1](https://img.shields.io/badge/%E2%86%91%20%2B23.1-green)|
|Bug prevention|🟡 **68**|🟡 68||
|Code style|🟡 54|🟡 **77**|![↑ +23.1](https://img.shields.io/badge/%E2%86%91%20%2B23.1-green)|
|Bug prevention|🟡 68|🟡 **68**||

## 🗃️ Groups

<details>
<summary>👍 <strong>1</strong> group improved</summary>

|🔌 Plugin|🗃️ Group|Current score|Previous score|🔄 Score change|
|🔌 Plugin|🗃️ Group|Previous score|Current score|🔄 Score change|
|:--|:--|:--:|:--:|:--:|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|Suggestions|🟡 **71**|🟡 50|![↑ +21.4](https://img.shields.io/badge/%E2%86%91%20%2B21.4-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|Suggestions|🟡 50|🟡 **71**|![↑ +21.4](https://img.shields.io/badge/%E2%86%91%20%2B21.4-green)|

3 other groups are unchanged.

Expand All @@ -28,11 +28,11 @@
<details>
<summary>👍 <strong>3</strong> audits improved</summary>

|🔌 Plugin|🛡️ Audit|📏 Current value|📏 Previous value|🔄 Value change|
|🔌 Plugin|🛡️ Audit|📏 Previous value|📏 Current value|🔄 Value change|
|:--|:--|:--:|:--:|:--:|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require or disallow method and property shorthand syntax for object literals](https://eslint.org/docs/latest/rules/object-shorthand)|🟩 **passed**|🟥 3 warnings|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require braces around arrow function bodies](https://eslint.org/docs/latest/rules/arrow-body-style)|🟩 **passed**|🟥 1 warning|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require `const` declarations for variables that are never reassigned after declared](https://eslint.org/docs/latest/rules/prefer-const)|🟩 **passed**|🟥 1 warning|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require or disallow method and property shorthand syntax for object literals](https://eslint.org/docs/latest/rules/object-shorthand)|🟥 3 warnings|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require braces around arrow function bodies](https://eslint.org/docs/latest/rules/arrow-body-style)|🟥 1 warning|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require `const` declarations for variables that are never reassigned after declared](https://eslint.org/docs/latest/rules/prefer-const)|🟥 1 warning|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|

44 other audits are unchanged.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

## 🏷️ Categories

|🏷️ Category|Current score|Previous score|🔄 Score change|
|🏷️ Category|Previous score|Current score|🔄 Score change|
|:--|:--:|:--:|:--:|
|Bug prevention|🟡 **63**|🟡 68|![↓ −5](https://img.shields.io/badge/%E2%86%93%20%E2%88%925-red)|
|Performance|🟢 **94**|_n/a (\*)_|_n/a (\*)_|
|Code style|🟡 **54**|🟡 54||
|Bug prevention|🟡 68|🟡 **63**|![↓ −5](https://img.shields.io/badge/%E2%86%93%20%E2%88%925-red)|
|Performance|_n/a (\*)_|🟢 **94**|_n/a (\*)_|
|Code style|🟡 54|🟡 **54**||

_(\*) New category._

Expand All @@ -21,9 +21,9 @@ All of 1 group is unchanged.
<details>
<summary>👎 <strong>1</strong> audit regressed</summary>

|🔌 Plugin|🛡️ Audit|📏 Current value|📏 Previous value|🔄 Value change|
|🔌 Plugin|🛡️ Audit|📏 Previous value|📏 Current value|🔄 Value change|
|:--|:--|:--:|:--:|:--:|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow unused variables](https://eslint.org/docs/latest/rules/no-unused-vars)|🟥 **1 error**|🟩 passed|![↑ +∞ %](https://img.shields.io/badge/%E2%86%91%20%2B%E2%88%9E%E2%80%89%25-red)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow unused variables](https://eslint.org/docs/latest/rules/no-unused-vars)|🟩 passed|🟥 **1 error**|![↑ +∞ %](https://img.shields.io/badge/%E2%86%91%20%2B%E2%88%9E%E2%80%89%25-red)|

48 other audits are unchanged.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@

## 🏷️ Categories

|🏷️ Category|Current score|Previous score|🔄 Score change|
|🏷️ Category|Previous score|Current score|🔄 Score change|
|:--|:--:|:--:|:--:|
|Code style|🟢 **100**|🟡 54|![↑ +46](https://img.shields.io/badge/%E2%86%91%20%2B46-green)|
|Bug prevention|🟢 **95**|🟡 68|![↑ +27](https://img.shields.io/badge/%E2%86%91%20%2B27-green)|
|[Performance](https://developers.google.com/web/fundamentals/performance)|🟢 **94**|🟢 92|![↑ +2](https://img.shields.io/badge/%E2%86%91%20%2B2-green)|
|Code style|🟡 54|🟢 **100**|![↑ +46](https://img.shields.io/badge/%E2%86%91%20%2B46-green)|
|Bug prevention|🟡 68|🟢 **95**|![↑ +27](https://img.shields.io/badge/%E2%86%91%20%2B27-green)|
|[Performance](https://developers.google.com/web/fundamentals/performance)|🟢 92|🟢 **94**|![↑ +2](https://img.shields.io/badge/%E2%86%91%20%2B2-green)|

## 🗃️ Groups

<details>
<summary>👍 <strong>2</strong> groups improved</summary>

|🔌 Plugin|🗃️ Group|Current score|Previous score|🔄 Score change|
|🔌 Plugin|🗃️ Group|Previous score|Current score|🔄 Score change|
|:--|:--|:--:|:--:|:--:|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|Maximum lines limitation|🟢 **100**|🟡 50|![↑ +50](https://img.shields.io/badge/%E2%86%91%20%2B50-green)|
|Lighthouse|Performance|🟢 **94**|🟢 92|![↑ +2](https://img.shields.io/badge/%E2%86%91%20%2B2-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|Maximum lines limitation|🟡 50|🟢 **100**|![↑ +50](https://img.shields.io/badge/%E2%86%91%20%2B50-green)|
|Lighthouse|Performance|🟢 92|🟢 **94**|![↑ +2](https://img.shields.io/badge/%E2%86%91%20%2B2-green)|


</details>
Expand All @@ -28,20 +28,20 @@
<details>
<summary>👍 <strong>12</strong> audits improved</summary>

|🔌 Plugin|🛡️ Audit|📏 Current value|📏 Previous value|🔄 Value change|
|🔌 Plugin|🛡️ Audit|📏 Previous value|📏 Current value|🔄 Value change|
|:--|:--|:--:|:--:|:--:|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow variable declarations from shadowing variables declared in the outer scope](https://eslint.org/docs/latest/rules/no-shadow)|🟩 **passed**|🟥 3 warnings|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require or disallow method and property shorthand syntax for object literals](https://eslint.org/docs/latest/rules/object-shorthand)|🟩 **passed**|🟥 3 warnings|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[verifies the list of dependencies for Hooks like useEffect and similar](https://github.com/facebook/react/issues/14920)|🟩 **passed**|🟥 2 warnings|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow unused variables](https://eslint.org/docs/latest/rules/no-unused-vars)|🟩 **passed**|🟥 1 warning|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require braces around arrow function bodies](https://eslint.org/docs/latest/rules/arrow-body-style)|🟩 **passed**|🟥 1 warning|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require the use of `===` and `!==`](https://eslint.org/docs/latest/rules/eqeqeq)|🟩 **passed**|🟥 1 warning|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Enforce a maximum number of lines of code in a function](https://eslint.org/docs/latest/rules/max-lines-per-function)|🟩 **passed**|🟥 1 warning|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require `const` declarations for variables that are never reassigned after declared](https://eslint.org/docs/latest/rules/prefer-const)|🟩 **passed**|🟥 1 warning|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow missing `key` props in iterators/collection literals](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-key.md)|🟩 **passed**|🟥 1 warning|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|Lighthouse|[Largest Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/largest-contentful-paint/)|🟨 **1.4 s**|🟨 1.5 s|![↓ −8 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%928%E2%80%89%25-green)|
|Lighthouse|[First Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/first-contentful-paint/)|🟨 **1.1 s**|🟨 1.2 s|![↓ −4 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%924%E2%80%89%25-green)|
|Lighthouse|[Speed Index](https://developer.chrome.com/docs/lighthouse/performance/speed-index/)|🟩 **1.1 s**|🟩 1.2 s|![↓ −4 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%924%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow variable declarations from shadowing variables declared in the outer scope](https://eslint.org/docs/latest/rules/no-shadow)|🟥 3 warnings|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require or disallow method and property shorthand syntax for object literals](https://eslint.org/docs/latest/rules/object-shorthand)|🟥 3 warnings|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[verifies the list of dependencies for Hooks like useEffect and similar](https://github.com/facebook/react/issues/14920)|🟥 2 warnings|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow unused variables](https://eslint.org/docs/latest/rules/no-unused-vars)|🟥 1 warning|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require braces around arrow function bodies](https://eslint.org/docs/latest/rules/arrow-body-style)|🟥 1 warning|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require the use of `===` and `!==`](https://eslint.org/docs/latest/rules/eqeqeq)|🟥 1 warning|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Enforce a maximum number of lines of code in a function](https://eslint.org/docs/latest/rules/max-lines-per-function)|🟥 1 warning|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Require `const` declarations for variables that are never reassigned after declared](https://eslint.org/docs/latest/rules/prefer-const)|🟥 1 warning|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow missing `key` props in iterators/collection literals](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-key.md)|🟥 1 warning|🟩 **passed**|![↓ −100 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%92100%E2%80%89%25-green)|
|Lighthouse|[Largest Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/largest-contentful-paint/)|🟨 1.5 s|🟨 **1.4 s**|![↓ −8 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%928%E2%80%89%25-green)|
|Lighthouse|[First Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/first-contentful-paint/)|🟨 1.2 s|🟨 **1.1 s**|![↓ −4 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%924%E2%80%89%25-green)|
|Lighthouse|[Speed Index](https://developer.chrome.com/docs/lighthouse/performance/speed-index/)|🟩 1.2 s|🟩 **1.1 s**|![↓ −4 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%924%E2%80%89%25-green)|

40 other audits are unchanged.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<details>
<summary>👎 <strong>1</strong> audit regressed</summary>

|🔌 Plugin|🛡️ Audit|📏 Current value|📏 Previous value|🔄 Value change|
|🔌 Plugin|🛡️ Audit|📏 Previous value|📏 Current value|🔄 Value change|
|:--|:--|:--:|:--:|:--:|
|NPM|Check for outdates NPM packages|🟨 **3 packages are out of date**|🟩 1 package is out of date|![↑ +200 %](https://img.shields.io/badge/%E2%86%91%20%2B200%E2%80%89%25-red)|
|NPM|Check for outdates NPM packages|🟩 1 package is out of date|🟨 **3 packages are out of date**|![↑ +200 %](https://img.shields.io/badge/%E2%86%91%20%2B200%E2%80%89%25-red)|


</details>
22 changes: 11 additions & 11 deletions packages/utils/src/lib/reports/__snapshots__/report-diff-mixed.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

## 🏷️ Categories

|🏷️ Category|Current score|Previous score|🔄 Score change|
|🏷️ Category|Previous score|Current score|🔄 Score change|
|:--|:--:|:--:|:--:|
|Bug prevention|🟡 **63**|🟡 68|![↓ −5](https://img.shields.io/badge/%E2%86%93%20%E2%88%925-red)|
|Performance|🟢 **94**|🟢 92|![↑ +2](https://img.shields.io/badge/%E2%86%91%20%2B2-green)|
|Code style|🟡 **54**|🟡 54||
|Bug prevention|🟡 68|🟡 **63**|![↓ −5](https://img.shields.io/badge/%E2%86%93%20%E2%88%925-red)|
|Performance|🟢 92|🟢 **94**|![↑ +2](https://img.shields.io/badge/%E2%86%91%20%2B2-green)|
|Code style|🟡 54|🟡 **54**||

## 🗃️ Groups

<details>
<summary>👍 <strong>1</strong> group improved</summary>

|🔌 Plugin|🗃️ Group|Current score|Previous score|🔄 Score change|
|🔌 Plugin|🗃️ Group|Previous score|Current score|🔄 Score change|
|:--|:--|:--:|:--:|:--:|
|Lighthouse|Performance|🟢 **94**|🟢 92|![↑ +2](https://img.shields.io/badge/%E2%86%91%20%2B2-green)|
|Lighthouse|Performance|🟢 92|🟢 **94**|![↑ +2](https://img.shields.io/badge/%E2%86%91%20%2B2-green)|

1 other group is unchanged.

Expand All @@ -29,12 +29,12 @@
<details>
<summary>👍 <strong>3</strong> audits improved, 👎 <strong>1</strong> audit regressed</summary>

|🔌 Plugin|🛡️ Audit|📏 Current value|📏 Previous value|🔄 Value change|
|🔌 Plugin|🛡️ Audit|📏 Previous value|📏 Current value|🔄 Value change|
|:--|:--|:--:|:--:|:--:|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow unused variables](https://eslint.org/docs/latest/rules/no-unused-vars)|🟥 **1 error**|🟩 passed|![↑ +∞ %](https://img.shields.io/badge/%E2%86%91%20%2B%E2%88%9E%E2%80%89%25-red)|
|Lighthouse|[Largest Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/largest-contentful-paint/)|🟨 **1.4 s**|🟨 1.5 s|![↓ −8 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%928%E2%80%89%25-green)|
|Lighthouse|[First Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/first-contentful-paint/)|🟨 **1.1 s**|🟨 1.2 s|![↓ −4 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%924%E2%80%89%25-green)|
|Lighthouse|[Speed Index](https://developer.chrome.com/docs/lighthouse/performance/speed-index/)|🟩 **1.1 s**|🟩 1.2 s|![↓ −4 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%924%E2%80%89%25-green)|
|[ESLint](https://www.npmjs.com/package/@code-pushup/eslint-plugin)|[Disallow unused variables](https://eslint.org/docs/latest/rules/no-unused-vars)|🟩 passed|🟥 **1 error**|![↑ +∞ %](https://img.shields.io/badge/%E2%86%91%20%2B%E2%88%9E%E2%80%89%25-red)|
|Lighthouse|[Largest Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/largest-contentful-paint/)|🟨 1.5 s|🟨 **1.4 s**|![↓ −8 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%928%E2%80%89%25-green)|
|Lighthouse|[First Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/first-contentful-paint/)|🟨 1.2 s|🟨 **1.1 s**|![↓ −4 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%924%E2%80%89%25-green)|
|Lighthouse|[Speed Index](https://developer.chrome.com/docs/lighthouse/performance/speed-index/)|🟩 1.2 s|🟩 **1.1 s**|![↓ −4 %](https://img.shields.io/badge/%E2%86%93%20%E2%88%924%E2%80%89%25-green)|

48 other audits are unchanged.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

## 🏷️ Categories

|🏷️ Category|Score|
|🏷️ Category|Previous score|
|:--|:--:|
|Performance|🟢 **92**|
|Bug prevention|🟡 **68**|
|Code style|🟡 **54**|
|Performance||
|Bug prevention||
|Code style||

## 🗃️ Groups

Expand Down
6 changes: 3 additions & 3 deletions packages/utils/src/lib/reports/generate-md-reports-diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function formatDiffCategoriesSection(diff: ReportsDiff): string {

const columns: TableColumnObject[] = [
{ key: 'category', label: '🏷️ Category', align: 'left' },
{ key: 'after', label: hasChanges ? '⭐ Current score' : '⭐ Score' },
{ key: 'before', label: '⭐ Previous score' },
{ key: 'after', label: hasChanges ? '⭐ Current score' : '⭐ Score' },
{ key: 'change', label: '🔄 Score change' },
];
return lines(
Expand Down Expand Up @@ -128,8 +128,8 @@ function formatDiffGroupsSection(diff: ReportsDiff): string {
columns: [
{ key: 'plugin', label: '🔌 Plugin', align: 'left' },
{ key: 'group', label: '🗃️ Group', align: 'left' },
{ key: 'after', label: '⭐ Current score' },
{ key: 'before', label: '⭐ Previous score' },
{ key: 'after', label: '⭐ Current score' },
{ key: 'change', label: '🔄 Score change' },
],
rows: sortChanges(diff.groups.changed).map(group => ({
Expand All @@ -150,8 +150,8 @@ function formatDiffAuditsSection(diff: ReportsDiff): string {
columns: [
{ key: 'plugin', label: '🔌 Plugin', align: 'left' },
{ key: 'audit', label: '🛡️ Audit', align: 'left' },
{ key: 'after', label: '📏 Current value' },
{ key: 'before', label: '📏 Previous value' },
{ key: 'after', label: '📏 Current value' },
{ key: 'change', label: '🔄 Value change' },
],
rows: sortChanges(diff.audits.changed).map(audit => ({
Expand Down

0 comments on commit 04b5130

Please sign in to comment.