hikariatama / Hikka

The most fresh and updateable developer-oriented Telegram userbot
https://hikka.pw
GNU Affero General Public License v3.0
318 stars 516 forks source link

1.5.2 #76

Closed hikariatama closed 1 year ago

hikariatama commented 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.08%.

Quality metrics Before After Change
Complexity 18.47 😞 18.51 😞 0.04 👎
Method Length 96.21 🙂 96.06 🙂 -0.15 👍
Working memory 6.02 ⭐ 6.04 ⭐ 0.02 👎
Quality 48.93% 😞 48.85% 😞 -0.08% 👎
Other metrics Before After Change
Lines 1534 1532 -2
Changed files Quality Before Quality After Quality Change
hikka/loader.py 48.70% 😞 48.62% 😞 -0.08% 👎
hikka/version.py 86.81% ⭐ 86.81% ⭐ 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
hikka/loader.py Modules._mod_import_lib 49 ⛔ 808 ⛔ 5.06% ⛔ Refactor to reduce nesting. Try splitting into smaller methods
hikka/loader.py replace_all_refs 67 ⛔ 317 ⛔ 6.20% ⛔ Refactor to reduce nesting. Try splitting into smaller methods
hikka/loader.py translatable_docstring 25 😞 281 ⛔ 24.48% ⛔ Refactor to reduce nesting. Try splitting into smaller methods
hikka/loader.py Modules.send_ready_one 21 😞 253 ⛔ 9 🙂 38.58% 😞 Refactor to reduce nesting. Try splitting into smaller methods
hikka/loader.py Modules._request_join 9 🙂 312 ⛔ 13 😞 38.85% 😞 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!