Vexed01 / Vex-Cogs

My cogs for Red.
https://cogdocs.vexcodes.com
GNU General Public License v3.0
28 stars 21 forks source link

[Status] Add statusset clear #51

Closed madebylydia closed 3 years ago

madebylydia commented 3 years ago

This close #45.

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 2.42%.

Quality metrics Before After Change
Complexity 23.51 😞 22.21 😞 -1.30 👍
Method Length 154.00 😞 149.73 😞 -4.27 👍
Working memory 14.44 😞 13.98 😞 -0.46 👍
Quality 32.79% 😞 35.21% 😞 2.42% 👍
Other metrics Before After Change
Lines 556 581 25
Changed files Quality Before Quality After Quality Change
status/commands/statusset_com.py 32.79% 😞 35.21% 😞 2.42% 👍

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
status/commands/statusset_com.py StatusSetCom.statusset_list 46 ⛔ 272 ⛔ 17 ⛔ 14.91% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
status/commands/statusset_com.py StatusSetCom.statusset_add 29 😞 405 ⛔ 15 😞 19.74% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
status/commands/statusset_com.py StatusSetCom.statusset_preview 10 🙂 171 😞 15 😞 43.25% 😞 Try splitting into smaller methods. Extract out complex expressions
status/commands/statusset_com.py StatusSetCom.edit_restrict 12 🙂 191 😞 12 😞 43.97% 😞 Try splitting into smaller methods. Extract out complex expressions
status/commands/statusset_com.py StatusSetCom.edit_webhook 10 🙂 171 😞 14 😞 44.51% 😞 Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

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!