code-pushup / cli

A CLI to run all kinds of code quality measurements to align your team with company goals
https://code-pushup.dev
MIT License
255 stars 14 forks source link

feat(utils): support local report links #824

Closed hanna-skryl closed 1 month ago

hanna-skryl commented 1 month ago

This PR introduces support for generating links from markdown reports to local source files. The links are formatted based on the detected environment (VS Code, GitHub, etc.), allowing direct navigation to specific lines within the IDE.

Closes #745

github-actions[bot] commented 1 month ago

Code PushUp

๐Ÿคจ Code PushUp report has both improvements and regressions โ€“ compared target commit 94b4944b8623bf15a3190b16cec13d4678217acf with source commit 7b6d7daa73c41589b85588f92de7a413b7bc87f0.

๐Ÿ•ต๏ธ See full comparison in Code PushUp portal ๐Ÿ”

๐Ÿท๏ธ Categories

๐Ÿท๏ธ Category โญ Previous score โญ Current score ๐Ÿ”„ Score change
Performance ๐Ÿ”ด 43 ๐Ÿ”ด 39 โ†“ โˆ’3.8
Code coverage ๐ŸŸก 90 ๐ŸŸข 90 โ†‘ +0.1
Custom checks ๐ŸŸก 67 ๐ŸŸก 67 โ€“
Security ๐ŸŸก 87 ๐ŸŸก 87 โ€“
Updates ๐ŸŸก 78 ๐ŸŸก 78 โ€“
Accessibility ๐ŸŸข 91 ๐ŸŸข 91 โ€“
Best Practices ๐ŸŸข 100 ๐ŸŸข 100 โ€“
SEO ๐ŸŸก 61 ๐ŸŸก 61 โ€“
Bug prevention ๐ŸŸข 100 ๐ŸŸข 100 โ€“
Code style ๐ŸŸข 99 ๐ŸŸข 99 โ€“
๐Ÿ‘ 1 group improved, ๐Ÿ‘Ž 1 group regressed, ๐Ÿ‘ 3 audits improved, ๐Ÿ‘Ž 6 audits regressed, 10 audits changed without impacting score ## ๐Ÿ—ƒ๏ธ Groups | ๐Ÿ”Œ Plugin | ๐Ÿ—ƒ๏ธ Group | โญ Previous score | โญ Current score | ๐Ÿ”„ Score change | | :--------------------------------------------------------------------------- | :-------------------- | :--------------: | :-------------: | :------------------------------------------------------------------: | | Lighthouse | Performance | ๐Ÿ”ด 43 | ๐Ÿ”ด **39** | ![โ†“ โˆ’3.8](https://img.shields.io/badge/%E2%86%93%20%E2%88%923.8-red) | | [Code coverage](https://www.npmjs.com/package/@code-pushup/coverage-plugin/) | Code coverage metrics | ๐ŸŸก 90 | ๐ŸŸข **90** | ![โ†‘ +0.1](https://img.shields.io/badge/%E2%86%91%20%2B0.1-green) | 18 other groups are unchanged. ## ๐Ÿ›ก๏ธ Audits | ๐Ÿ”Œ Plugin | ๐Ÿ›ก๏ธ Audit | ๐Ÿ“ Previous value | ๐Ÿ“ Current value | ๐Ÿ”„ Value change | | :--------------------------------------------------------------------------- | :------------------------------------------- | :--------------------------: | :--------------------------------: | :-----------------------------------------------------------------------------------: | | Lighthouse | Eliminate render-blocking resources | ๐ŸŸจ Potential savings of 0ย ms | ๐ŸŸฅ **Potential savings of 130ย ms** | ![โ†‘ +โˆžโ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B%E2%88%9E%E2%80%89%25-red) | | Lighthouse | Speed Index | ๐ŸŸฅ 6.9ย s | ๐ŸŸฅ **7.8ย s** | ![โ†‘ +12.8โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B12.8%E2%80%89%25-red) | | Lighthouse | Largest Contentful Paint | ๐ŸŸฅ 4.3ย s | ๐ŸŸฅ **4.7ย s** | ![โ†‘ +10.1โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B10.1%E2%80%89%25-red) | | Lighthouse | First Meaningful Paint | ๐ŸŸจ 3.4ย s | ๐ŸŸจ **3.6ย s** | ![โ†‘ +4.8โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B4.8%E2%80%89%25-red) | | Lighthouse | First Contentful Paint | ๐ŸŸฅ 3.4ย s | ๐ŸŸฅ **3.6ย s** | ![โ†‘ +3.9โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B3.9%E2%80%89%25-red) | | Lighthouse | Time to Interactive | ๐ŸŸฅ 16.2ย s | ๐ŸŸฅ **16.3ย s** | ![โ†‘ +0.6โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B0.6%E2%80%89%25-red) | | [Code coverage](https://www.npmjs.com/package/@code-pushup/coverage-plugin/) | Branch coverage | ๐ŸŸจ 84.9 % | ๐ŸŸจ **85.1 %** | ![โ†‘ +0.2โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B0.2%E2%80%89%25-green) | | [Code coverage](https://www.npmjs.com/package/@code-pushup/coverage-plugin/) | Function coverage | ๐ŸŸฉ 92.1 % | ๐ŸŸฉ **92.3 %** | ![โ†‘ +0.1โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B0.1%E2%80%89%25-green) | | [Code coverage](https://www.npmjs.com/package/@code-pushup/coverage-plugin/) | Line coverage | ๐ŸŸฉ 91.4 % | ๐ŸŸฉ **91.5 %** | ![โ†‘ +0.1โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B0.1%E2%80%89%25-green) | | Lighthouse | Avoids enormous network payloads | ๐ŸŸฉ Total size was 1,799ย KiB | ๐ŸŸฉ **Total size was 1,795ย KiB** | ![โ†“ โˆ’0.2โ€‰%](https://img.shields.io/badge/%E2%86%93%20%E2%88%920.2%E2%80%89%25-gray) | | Lighthouse | Minimizes main-thread work | ๐ŸŸฅ 21.5ย s | ๐ŸŸฅ **23.7ย s** | ![โ†‘ +10.2โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B10.2%E2%80%89%25-gray) | | Lighthouse | Total Blocking Time | ๐ŸŸฅ 8,820ย ms | ๐ŸŸฅ **10,700ย ms** | ![โ†‘ +21.3โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B21.3%E2%80%89%25-gray) | | Lighthouse | JavaScript execution time | ๐ŸŸฅ 9.9ย s | ๐ŸŸฅ **11.6ย s** | ![โ†‘ +17.5โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B17.5%E2%80%89%25-gray) | | Lighthouse | Uses efficient cache policy on static assets | ๐ŸŸจ 27 resources found | ๐ŸŸจ **27 resources found** | ![โ†“ โˆ’0.1โ€‰%](https://img.shields.io/badge/%E2%86%93%20%E2%88%920.1%E2%80%89%25-gray) | | Lighthouse | Max Potential First Input Delay | ๐ŸŸฅ 2,200ย ms | ๐ŸŸฅ **2,070ย ms** | ![โ†“ โˆ’6.1โ€‰%](https://img.shields.io/badge/%E2%86%93%20%E2%88%926.1%E2%80%89%25-gray) | | Lighthouse | Metrics | ๐ŸŸฉ 100% | ๐ŸŸฉ **100%** | ![โ†‘ +0.6โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B0.6%E2%80%89%25-gray) | | Lighthouse | Initial server response time was short | ๐ŸŸฉ Root document took 420ย ms | ๐ŸŸฉ **Root document took 350ย ms** | ![โ†“ โˆ’15.2โ€‰%](https://img.shields.io/badge/%E2%86%93%20%E2%88%9215.2%E2%80%89%25-gray) | | Lighthouse | Server Backend Latencies | ๐ŸŸฉ 100ย ms | ๐ŸŸฉ **100ย ms** | ![โ†‘ +2.4โ€‰%](https://img.shields.io/badge/%E2%86%91%20%2B2.4%E2%80%89%25-gray) | | Lighthouse | Network Round Trip Times | ๐ŸŸฉ 60ย ms | ๐ŸŸฉ **60ย ms** | ![โ†“ โˆ’3.8โ€‰%](https://img.shields.io/badge/%E2%86%93%20%E2%88%923.8%E2%80%89%25-gray) | 494 other audits are unchanged.