starlightknown / Cyberon

Cyberon- a discord bot for hackathon servers made by using discord.py
https://starlightknown.github.io/Cyberon/#/
MIT License
19 stars 12 forks source link

Revert "Sourcery refactored master branch" #23

Closed starlightknown closed 3 years ago

starlightknown commented 3 years ago

Reverts starlightknown/Cyberon#22

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 6.17 ⭐ 6.99 ⭐ 0.82 👎
Method Length 48.73 ⭐ 57.55 ⭐ 8.82 👎
Working memory 16.41 ⛔ 17.95 ⛔ 1.54 👎
Quality 61.95% 🙂 56.89% 🙂 -5.06% 👎
Other metrics Before After Change
Lines 111 124 13
Changed files Quality Before Quality After Quality Change
Resources/factre.py 90.13% ⭐ 89.89% ⭐ -0.24% 👎
cogs/fact.py 37.58% 😞 32.82% 😞 -4.76% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
cogs/fact.py fact.fact 14 🙂 385 ⛔ 31 ⛔ 22.38% ⛔ 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.