Closed YashKandalkar closed 3 years ago
✅ Merging this PR will increase code quality in the affected files by 0.50%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 10.15 🙂 | 9.93 🙂 | -0.22 👍 |
Method Length | 73.22 🙂 | 73.21 🙂 | -0.01 👍 |
Working memory | 9.59 🙂 | 9.49 🙂 | -0.10 👍 |
Quality | 61.46% 🙂 | 61.96% 🙂 | 0.50% 👍 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 733 | 772 | 39 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
bot.py | 67.13% 🙂 | 66.99% 🙂 | -0.14% 👎 |
scrapper.py | 90.20% ⭐ | 90.20% ⭐ | 0.00% |
cogs/Utils.py | 56.41% 🙂 | 57.51% 🙂 | 1.10% 👍 |
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 | 37 ⛔ | 304 ⛔ | 15 😞 | 18.40% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
cogs/Utils.py | GeneralCog.userinfo | 33 ⛔ | 373 ⛔ | 14 😞 | 19.60% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
bot.py | on_message_edit | 10 🙂 | 108 🙂 | 24 ⛔ | 44.05% 😞 | Extract out complex expressions |
bot.py | on_member_remove | 11 🙂 | 150 😞 | 11 😞 | 50.41% 🙂 | Try splitting into smaller methods. Extract out complex expressions |
bot.py | on_member_join | 9 🙂 | 141 😞 | 11 😞 | 53.21% 🙂 | 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!
partially c/loses #75
What does this PR do?
Adds mlh command for showing upcoming hacks from https://mlh.io/seasons/2022/events Also formatted a few files.
How can this be manually tested?
Run
cyb!mlh
commandWhat is the relevant issue link?
75
Screenshots (if appropriate here)
Tell me if you want any changes :D