argo0n / NograBot

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

Argo0n command importtocog+moderationfixexs #61

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.06%.

Quality metrics Before After Change
Complexity 4.29 ⭐ 4.29 ⭐ 0.00
Method Length 51.22 ⭐ 51.48 ⭐ 0.26 👎
Working memory 10.05 😞 10.06 😞 0.01 👎
Quality 65.37% 🙂 65.31% 🙂 -0.06% 👎
Other metrics Before After Change
Lines 982 992 10
Changed files Quality Before Quality After Quality Change
nogra.py 63.87% 🙂 63.00% 🙂 -0.87% 👎
cogs/Admin.py 72.50% 🙂 63.09% 🙂 -9.41% 👎
cogs/Fun.py 98.22% ⭐ 81.02% ⭐ -17.20% 👎
cogs/Moderation.py 64.69% 🙂 64.69% 🙂 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
cogs/Admin.py Admin.setstatus 13 🙂 185 😞 15 😞 39.35% 😞 Try splitting into smaller methods. Extract out complex expressions
nogra.py dmads 5 ⭐ 209 ⛔ 20 ⛔ 40.51% 😞 Try splitting into smaller methods. Extract out complex expressions
nogra.py admon 9 🙂 277 ⛔ 12 😞 41.63% 😞 Try splitting into smaller methods. Extract out complex expressions
nogra.py on_message 7 ⭐ 384 ⛔ 10 😞 44.38% 😞 Try splitting into smaller methods. Extract out complex expressions
cogs/Moderation.py Moderation.clear 10 🙂 197 😞 12 😞 45.30% 😞 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!

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