Skip to content

Commit

Permalink
feat(utils): implement diff markdown comment for monorepos
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Aug 16, 2024
1 parent 7d77b51 commit 3cf7b11
Show file tree
Hide file tree
Showing 8 changed files with 292 additions and 35 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@poppinss/cliui": "^6.4.0",
"@swc/helpers": "0.5.3",
"ansis": "^3.3.0",
"build-md": "^0.4.1",
"build-md": "^0.4.2",
"bundle-require": "^4.0.1",
"cli-table3": "^0.6.3",
"esbuild": "^0.19.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@isaacs/cliui": "^8.0.2",
"@poppinss/cliui": "^6.4.0",
"ansis": "^3.3.0",
"build-md": "^0.4.1",
"build-md": "^0.4.2",
"bundle-require": "^4.0.1",
"esbuild": "^0.19.2",
"multi-progress-bars": "^5.0.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Code PushUp

🥳 Code PushUp report has **improved** – compared target commit 0123456789abcdef0123456789abcdef01234567 with source commit abcdef0123456789abcdef0123456789abcdef01.

## 💼 Project `frontoffice` – improved 🥳

[🕵️ See full comparison in Code PushUp portal 🔍](https://app.code-pushup.dev/portal/dunder-mifflin/frontoffice/comparison/abcdef0123456789abcdef0123456789abcdef01/0123456789abcdef0123456789abcdef01234567)

| 🏷️ Category | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
| :------------------------------------------------------------------------ | :--------------: | :-------------: | :------------------------------------------------------------: |
| 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) |

<details>
<summary>👍 <strong>2</strong> groups improved, 👍 <strong>12</strong> audits improved</summary>

### 🗃️ Groups

| 🔌 Plugin | 🗃️ Group | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
| :----------------------------------------------------------------- | :----------------------- | :--------------: | :-------------: | :------------------------------------------------------------: |
| [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) |

### 🛡️ Audits

| 🔌 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) | 🟥 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) |

41 other audits are unchanged.

</details>

## 💼 Project `backoffice` – unchanged 😐

[🕵️ See full comparison in Code PushUp portal 🔍](https://app.code-pushup.dev/portal/dunder-mifflin/backoffice/comparison/abcdef0123456789abcdef0123456789abcdef01/0123456789abcdef0123456789abcdef01234567)

| 🏷️ Category | ⭐ Score |
| :------------- | :-----: |
| Performance | 🟢 92 |
| Bug prevention | 🟡 68 |
| Code style | 🟡 54 |
Loading

0 comments on commit 3cf7b11

Please sign in to comment.