Closed starlightknown closed 3 years ago
✅ Merging this PR will increase code quality in the affected files by 0.27%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 10.90 🙂 | 10.82 🙂 | -0.08 👍 |
Method Length | 77.18 🙂 | 76.60 🙂 | -0.58 👍 |
Working memory | 10.79 😞 | 10.76 😞 | -0.03 👍 |
Quality | 56.96% 🙂 | 57.23% 🙂 | 0.27% 👍 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 1037 | 1023 | -14 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
cogs/Fun.py | 62.17% 🙂 | 62.82% 🙂 | 0.65% 👍 |
cogs/Help.py | 44.86% 😞 | 47.81% 😞 | 2.95% 👍 |
cogs/Utils.py | 54.99% 🙂 | 54.11% 🙂 | -0.88% 👎 |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
cogs/Utils.py | GeneralCog.avatar | 41 ⛔ | 320 ⛔ | 15 😞 | 16.65% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
cogs/Utils.py | GeneralCog.userinfo | 38 ⛔ | 380 ⛔ | 14 😞 | 17.58% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
cogs/Help.py | HelpCog.help | 14 🙂 | 264 ⛔ | 16 ⛔ | 32.38% 😞 | Try splitting into smaller methods. Extract out complex expressions |
cogs/Fun.py | FunCog.animal_facts | 17 🙂 | 192 😞 | 16 ⛔ | 34.37% 😞 | Try splitting into smaller methods. Extract out complex expressions |
cogs/Fun.py | FunCog.asciify_message | 14 🙂 | 136 😞 | 15 😞 | 43.36% 😞 | Try splitting into smaller methods. 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!
Help us improve this quality report!
closes #71
What does this PR do?
Some Description of Task to be completed?
How can this be manually tested?
Any background context you want to provide?
What is the relevant issue link?
Screenshots (if appropriate here)
Any Questions you have: