sravan1946 / sravan-cogs

Some random cogs made by me for my bot made using Red-DiscordBot
MIT License
5 stars 10 forks source link

master to dpy2 #19

Closed sravan1946 closed 1 year ago

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 5.13 ⭐ 5.31 ⭐ 0.18 👎
Method Length 98.99 🙂 99.86 🙂 0.87 👎
Working memory 8.25 🙂 8.26 🙂 0.01 👎
Quality 62.67% 🙂 62.40% 🙂 -0.27% 👎
Other metrics Before After Change
Lines 2213 2301 88
Changed files Quality Before Quality After Quality Change
devlogs/devlogs.py 74.94% 🙂 74.94% 🙂 0.00%
dps/dps.py 64.81% 🙂 63.08% 🙂 -1.73% 👎
gtn/Guessthenumber.py 30.63% 😞 30.48% 😞 -0.15% 👎
hideping/hideping.py 83.54% ⭐ 79.86% ⭐ -3.68% 👎
perform/perform.py 62.49% 🙂 62.50% 🙂 0.01% 👍
perform/utils.py 63.61% 🙂 64.40% 🙂 0.79% 👍
poll/poll.py 69.93% 🙂 69.93% 🙂 0.00%
session/session.py 77.05% ⭐ 77.03% ⭐ -0.02% 👎
timeout/__init__.py 94.05% ⭐ 94.81% ⭐ 0.76% 👍
timeout/timeout.py 66.01% 🙂 66.16% 🙂 0.15% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
dps/dps.py DontPingStaff.check_ping 42 ⛔ 274 ⛔ 19 ⛔ 14.19% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
gtn/Guessthenumber.py GuessTheNumber.gtn 28 😞 558 ⛔ 16.12% ⛔ Refactor to reduce nesting. Try splitting into smaller methods
dps/dps.py DontPingStaff.settings 7 ⭐ 365 ⛔ 16 ⛔ 35.70% 😞 Try splitting into smaller methods. Extract out complex expressions
perform/utils.py kawaiiembed 6 ⭐ 193 😞 15 😞 45.14% 😞 Try splitting into smaller methods. Extract out complex expressions
timeout/timeout.py Timeout.timeout 7 ⭐ 212 ⛔ 13 😞 45.44% 😞 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!

sravan1946 commented 1 year ago

was test