Closed A-kirami closed 2 years ago
✅ Merging this PR will increase code quality in the affected files by 1.34%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 3.04 ⭐ | 3.08 ⭐ | 0.04 👎 |
Method Length | 85.79 🙂 | 83.47 🙂 | -2.32 👍 |
Working memory | 7.47 🙂 | 7.01 🙂 | -0.46 👍 |
Quality | 70.92% 🙂 | 72.26% 🙂 | 1.34% 👍 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 225 | 239 | 14 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
nonebot_plugin_aidraw/config.py | 83.65% ⭐ | 81.76% ⭐ | -1.89% 👎 |
nonebot_plugin_aidraw/draw.py | 69.11% 🙂 | 70.82% 🙂 | 1.71% 👍 |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
nonebot_plugin_aidraw/draw.py | novel_draw_handle | 6 ⭐ | 190 😞 | 12 😞 | 49.62% 😞 | Try splitting into smaller methods. Extract out complex expressions |
nonebot_plugin_aidraw/draw.py | image_draw_handle | 3 ⭐ | 127 😞 | 9 🙂 | 64.59% 🙂 | Try splitting into smaller methods |
nonebot_plugin_aidraw/draw.py | get_image | 5 ⭐ | 126 😞 | 6 ⭐ | 69.77% 🙂 | Try splitting into smaller methods |
The emojis denote the absolute quality of the code:
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!
Help us improve this quality report!
这个 PR 带来了什么样的更改?
这个 PR 是否存在破坏性变更?
描述
自定义的消息发送方式
动机和背景
resolve #12
其他信息
检查工作