hikariatama / Hikka

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

Turkish translation for Hikka #82

Closed noramibuu closed 1 year ago

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 7.26%.

Quality metrics Before After Change
Complexity 10.79 🙂 5.60 ⭐ -5.19 👍
Method Length 121.98 😞 107.15 🙂 -14.83 👍
Working memory 9.51 🙂 8.46 🙂 -1.05 👍
Quality 56.04% 🙂 63.30% 🙂 7.26% 👍
Other metrics Before After Change
Lines 1376 900 -476
Changed files Quality Before Quality After Quality Change
hikka/modules/settings.py 73.08% 🙂 73.08% 🙂 0.00%
hikka/modules/test.py 40.49% 😞 % %
hikka/modules/translations.py 60.90% 🙂 60.90% 🙂 0.00%
hikka/modules/updater.py 57.56% 🙂 57.56% 🙂 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
hikka/modules/updater.py UpdaterMod.restart_common 15 🙂 270 ⛔ 14 😞 33.67% 😞 Try splitting into smaller methods. Extract out complex expressions
hikka/modules/updater.py UpdaterMod._add_folder 9 🙂 238 ⛔ 15 😞 39.26% 😞 Try splitting into smaller methods. Extract out complex expressions
hikka/modules/updater.py UpdaterMod.update 7 ⭐ 174 😞 12 😞 50.04% 🙂 Try splitting into smaller methods. Extract out complex expressions
hikka/modules/settings.py CoreMod.hikkacmd 5 ⭐ 125 😞 17 ⛔ 50.82% 🙂 Try splitting into smaller methods. Extract out complex expressions
hikka/modules/updater.py UpdaterMod.inline_update 9 🙂 162 😞 11 😞 51.01% 🙂 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!