BeautifulReport
BeautifulReport copied to clipboard
失败用例统计数据不正确
你好,测试报告中,两边显示的失败用例统计数据不一致,不知道大家有没有遇到过?
@code-rgb, Thanks for opening this PR.
- In the file
userge/core/types/new/channel_logger.py
:
Line 139:101: E501 line too long (112 > 100 characters) Line 250:31: W292 no newline at end of file
- In the file
userge/plugins/fun/spotify_autobio.py
:
Line 172:1: W191 indentation contains tabs Line 172:1: E101 indentation contains mixed spaces and tabs Line 179:1: W191 indentation contains tabs Line 179:1: E101 indentation contains mixed spaces and tabs Line 185:1: W191 indentation contains tabs Line 185:1: E101 indentation contains mixed spaces and tabs Line 194:1: W191 indentation contains tabs Line 194:1: E101 indentation contains mixed spaces and tabs Line 218:1: W191 indentation contains tabs Line 218:1: E101 indentation contains mixed spaces and tabs Line 226:1: W191 indentation contains tabs Line 226:1: E101 indentation contains mixed spaces and tabs Line 232:1: W191 indentation contains tabs Line 232:1: E101 indentation contains mixed spaces and tabs Line 235:1: W191 indentation contains tabs Line 235:1: E101 indentation contains mixed spaces and tabs Line 235:4: E117 over-indented Line 286:1: W191 indentation contains tabs Line 286:1: E101 indentation contains mixed spaces and tabs Line 294:1: W191 indentation contains tabs Line 294:1: E101 indentation contains mixed spaces and tabs Line 300:1: W191 indentation contains tabs Line 300:1: E101 indentation contains mixed spaces and tabs Line 306:1: W191 indentation contains tabs Line 306:1: E101 indentation contains mixed spaces and tabs Line 324:1: W191 indentation contains tabs Line 324:1: E101 indentation contains mixed spaces and tabs Line 410:1: W191 indentation contains tabs Line 410:1: E101 indentation contains mixed spaces and tabs Line 413:1: W191 indentation contains tabs Line 413:1: E101 indentation contains mixed spaces and tabs Line 414:1: W191 indentation contains tabs Line 414:1: E101 indentation contains mixed spaces and tabs Line 415:1: W191 indentation contains tabs Line 415:1: E101 indentation contains mixed spaces and tabs Line 415:3: E117 over-indented Line 416:1: W191 indentation contains tabs Line 416:1: E101 indentation contains mixed spaces and tabs Line 433:1: W191 indentation contains tabs Line 433:1: E101 indentation contains mixed spaces and tabs Line 437:1: W191 indentation contains tabs Line 437:1: E101 indentation contains mixed spaces and tabs
- In the file
userge/plugins/misc/instadl.py
:
Line 233:101: E501 line too long (108 > 100 characters) Line 280:45: W292 no newline at end of file
- In the file
userge/plugins/misc/utube.py
:
Line 238:23: W292 no newline at end of file
Sourcery Code Quality Report
✅ Merging this PR will increase code quality in the affected files by 0.49%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 7.53 ⭐ | 6.88 ⭐ | -0.65 👍 |
Method Length | 115.71 🙂 | 114.38 🙂 | -1.33 👍 |
Working memory | 9.59 🙂 | 9.68 🙂 | 0.09 👎 |
Quality | 68.80% 🙂 | 69.29% 🙂 | 0.49% 👍 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 994 | 982 | -12 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
userge/config.py | 61.39% 🙂 | 61.39% 🙂 | 0.00% |
userge/versions.py | 87.19% ⭐ | 87.19% ⭐ | 0.00% |
userge/core/methods/utils/init.py | 99.00% ⭐ | 95.84% ⭐ | -3.16% 👎 |
userge/core/types/new/channel_logger.py | 80.21% ⭐ | 81.00% ⭐ | 0.79% 👍 |
userge/plugins/fun/spotify_autobio.py | 64.48% 🙂 | 64.96% 🙂 | 0.48% 👍 |
userge/plugins/misc/utube.py | 57.65% 🙂 | 58.37% 🙂 | 0.72% 👍 |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
userge/plugins/fun/spotify_autobio.py | spotify_biox | 95 ⛔ | 692 ⛔ | 21 ⛔ | 3.84% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
userge/plugins/misc/utube.py | ytDown | 31 😞 | 418 ⛔ | 21 ⛔ | 13.63% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
userge/core/types/new/channel_logger.py | ChannelLogger.forward_stored | 18 🙂 | 193 😞 | 14 😞 | 35.90% 😞 | Try splitting into smaller methods. Extract out complex expressions |
userge/plugins/misc/utube.py | ytDown.__progress | 9 🙂 | 154 😞 | 21 ⛔ | 40.86% 😞 | Try splitting into smaller methods. Extract out complex expressions |
userge/plugins/fun/spotify_autobio.py | now_playing_ | 4 ⭐ | 207 ⛔ | 15 😞 | 46.04% 😞 | Try splitting into smaller methods. Extract out complex expressions |
Legend and Explanation
The emojis denote the absolute quality of the code:
- ⭐ excellent
- 🙂 good
- 😞 poor
- ⛔ very poor
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.
Please see our documentation here for details on how these metrics are calculated.
We are actively working on this report - lots more documentation and extra metrics to come!
Let us know what you think of it by mentioning @sourcery-ai in a comment.