hikariatama / Hikka

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

"sudo can owneradd" fix #94

Closed penggrin12 closed 1 year ago

penggrin12 commented 1 year ago

93 fix

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 8.37 ⭐ 8.37 ⭐ 0.00
Method Length 118.30 🙂 119.03 🙂 0.73 👎
Working memory 6.42 🙂 6.47 🙂 0.05 👎
Quality 55.24% 🙂 55.08% 🙂 -0.16% 👎
Other metrics Before After Change
Lines 948 954 6
Changed files Quality Before Quality After Quality Change
hikka/modules/hikka_security.py 55.24% 🙂 55.08% 🙂 -0.16% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
hikka/modules/hikka_security.py HikkaSecurityMod._tsec_user 18 🙂 351 ⛔ 28.55% 😞 Try splitting into smaller methods
hikka/modules/hikka_security.py HikkaSecurityMod._tsec_chat 16 🙂 300 ⛔ 32.90% 😞 Try splitting into smaller methods
hikka/modules/hikka_security.py HikkaSecurityMod._convert_time 28 😞 136 😞 14 😞 34.99% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
hikka/modules/hikka_security.py HikkaSecurityMod.tsecrm 15 🙂 308 ⛔ 9 🙂 40.95% 😞 Try splitting into smaller methods
hikka/modules/hikka_security.py HikkaSecurityMod.inline__switch_perm 9 🙂 204 😞 12 😞 45.69% 😞 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!