argo0n / NograBot

Discord.py bot written by Argon#0002
GNU General Public License v3.0
2 stars 1 forks source link

Invite link #63

Closed argo0n closed 3 years ago

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.04%.

Quality metrics Before After Change
Complexity 4.55 ⭐ 4.24 ⭐ -0.31 👍
Method Length 49.58 ⭐ 55.50 ⭐ 5.92 👎
Working memory 10.18 😞 10.20 😞 0.02 👎
Quality 65.28% 🙂 65.24% 🙂 -0.04% 👎
Other metrics Before After Change
Lines 102 112 10
Changed files Quality Before Quality After Quality Change
cogs/Moderation.py 65.28% 🙂 65.24% 🙂 -0.04% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
cogs/Moderation.py Moderation.clear 10 🙂 197 😞 12 😞 45.30% 😞 Try splitting into smaller methods. Extract out complex expressions
cogs/Moderation.py Moderation.on_message 7 ⭐ 134 😞 18 ⛔ 46.94% 😞 Try splitting into smaller methods. Extract out complex expressions
cogs/Moderation.py Moderation.uptime 1 ⭐ 125 😞 9 🙂 66.82% 🙂 Try splitting into smaller methods

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!

Let us know what you think of it by mentioning @sourcery-ai in a comment.