Closed TanCheamy closed 3 years ago
✅ Merging this PR will increase code quality in the affected files by 1.95%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 6.98 ⭐ | 6.61 ⭐ | -0.37 👍 |
Method Length | 62.10 🙂 | 59.27 ⭐ | -2.83 👍 |
Working memory | 12.74 😞 | 12.33 😞 | -0.41 👍 |
Quality | 55.29% 🙂 | 57.24% 🙂 | 1.95% 👍 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 182 | 194 | 12 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
main.py | 99.00% ⭐ | 92.71% ⭐ | -6.29% 👎 |
youdao/youdao.py | 54.41% 🙂 | 56.21% 🙂 | 1.80% 👍 |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
youdao/youdao.py | Main.query | 12 🙂 | 266 ⛔ | 17 ⛔ | 33.02% 😞 | Try splitting into smaller methods. Extract out complex expressions |
youdao/youdao.py | Main.record | 2 ⭐ | 64 🙂 | 12 😞 | 68.65% 🙂 | Extract out complex expressions |
youdao/youdao.py | Main._get_proxies | 2 ⭐ | 60 ⭐ | 10 😞 | 72.91% 🙂 | Extract out complex expressions |
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!
Let us know what you think of it by mentioning @sourcery-ai in a comment.
不好意, 第一次使用 Pull Requests 一些测试代码提交了, 不知道如何去除, 请多多包涵
添加微软的合成发音, 不需要跳转页面, 代码修改小, 再安装 pywin32