Closed hikariatama closed 1 year ago
✅ Merging this PR will increase code quality in the affected files by 0.53%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 20.83 😞 | 20.69 😞 | -0.14 👍 |
Method Length | 95.71 🙂 | 91.66 🙂 | -4.05 👍 |
Working memory | 7.92 🙂 | 7.84 🙂 | -0.08 👍 |
Quality | 53.39% 🙂 | 53.92% 🙂 | 0.53% 👍 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 20198 | 19796 | -402 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
hikka/__main__.py | 21.99% ⛔ | 57.48% 🙂 | 35.49% 👍 |
hikka/_internal.py | 83.95% ⭐ | 85.10% ⭐ | 1.15% 👍 |
hikka/_local_storage.py | 74.59% 🙂 | 74.62% 🙂 | 0.03% 👍 |
hikka/_types.py | % | % | % |
hikka/configurator.py | 79.61% ⭐ | 56.21% 🙂 | -23.40% 👎 |
hikka/database.py | 75.27% ⭐ | 76.45% ⭐ | 1.18% 👍 |
hikka/dispatcher.py | 32.04% 😞 | 30.66% 😞 | -1.38% 👎 |
hikka/loader.py | 62.58% 🙂 | 62.61% 🙂 | 0.03% 👍 |
hikka/log.py | 58.87% 🙂 | 58.87% 🙂 | 0.00% |
hikka/main.py | 71.87% 🙂 | 58.63% 🙂 | -13.24% 👎 |
hikka/pointers.py | 93.60% ⭐ | 93.90% ⭐ | 0.30% 👍 |
hikka/security.py | 40.26% 😞 | 42.62% 😞 | 2.36% 👍 |
hikka/tl_cache.py | 51.29% 🙂 | 54.39% 🙂 | 3.10% 👍 |
hikka/translations.py | 70.01% 🙂 | 76.95% ⭐ | 6.94% 👍 |
hikka/types.py | 66.52% 🙂 | 66.44% 🙂 | -0.08% 👎 |
hikka/utils.py | 58.15% 🙂 | 58.37% 🙂 | 0.22% 👍 |
hikka/validators.py | 52.37% 🙂 | 69.50% 🙂 | 17.13% 👍 |
hikka/version.py | 86.81% ⭐ | 86.81% ⭐ | 0.00% |
hikka/compat/dragon.py | 81.53% ⭐ | 80.63% ⭐ | -0.90% 👎 |
hikka/compat/geek.py | 82.62% ⭐ | 82.62% ⭐ | 0.00% |
hikka/compat/pyroproxy.py | 76.37% ⭐ | 76.33% ⭐ | -0.04% 👎 |
hikka/inline/bot_pm.py | 81.93% ⭐ | 81.79% ⭐ | -0.14% 👎 |
hikka/inline/core.py | 50.40% 🙂 | 51.27% 🙂 | 0.87% 👍 |
hikka/inline/events.py | 25.51% 😞 | 26.30% 😞 | 0.79% 👍 |
hikka/inline/form.py | 5.65% ⛔ | 5.65% ⛔ | 0.00% |
hikka/inline/gallery.py | 35.18% 😞 | 35.18% 😞 | 0.00% |
hikka/inline/list.py | 17.66% ⛔ | 17.67% ⛔ | 0.01% 👍 |
hikka/inline/token_obtainment.py | 40.57% 😞 | 39.79% 😞 | -0.78% 👎 |
hikka/inline/types.py | 88.04% ⭐ | 88.04% ⭐ | 0.00% |
hikka/inline/utils.py | 30.38% 😞 | 30.88% 😞 | 0.50% 👍 |
hikka/modules/api_protection.py | 66.69% 🙂 | 63.19% 🙂 | -3.50% 👎 |
hikka/modules/help.py | 20.92% ⛔ | 24.65% ⛔ | 3.73% 👍 |
hikka/modules/hikka_backup.py | 69.38% 🙂 | 58.37% 🙂 | -11.01% 👎 |
hikka/modules/hikka_config.py | 50.73% 🙂 | 51.14% 🙂 | 0.41% 👍 |
hikka/modules/hikka_info.py | 56.78% 🙂 | 57.15% 🙂 | 0.37% 👍 |
hikka/modules/hikka_security.py | 55.24% 🙂 | 50.29% 🙂 | -4.95% 👎 |
hikka/modules/hikka_settings.py | 49.95% 😞 | 50.66% 🙂 | 0.71% 👍 |
hikka/modules/inline_stuff.py | 65.24% 🙂 | 65.45% 🙂 | 0.21% 👍 |
hikka/modules/loader.py | 35.14% 😞 | 34.29% 😞 | -0.85% 👎 |
hikka/modules/presets.py | 77.51% ⭐ | 77.51% ⭐ | 0.00% |
hikka/modules/quickstart.py | 69.65% 🙂 | 69.07% 🙂 | -0.58% 👎 |
hikka/modules/settings.py | 68.93% 🙂 | 69.35% 🙂 | 0.42% 👍 |
hikka/modules/test.py | 46.17% 😞 | 47.28% 😞 | 1.11% 👍 |
hikka/modules/translations.py | 70.00% 🙂 | 71.10% 🙂 | 1.10% 👍 |
hikka/modules/update_notifier.py | 74.09% 🙂 | 74.63% 🙂 | 0.54% 👍 |
hikka/modules/updater.py | 60.46% 🙂 | 60.89% 🙂 | 0.43% 👍 |
hikka/web/proxypass.py | 73.68% 🙂 | 72.26% 🙂 | -1.42% 👎 |
hikka/web/root.py | 58.84% 🙂 | 58.98% 🙂 | 0.14% 👍 |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
hikka/modules/loader.py | LoaderMod.load_module | 160 ⛔ | 2034 ⛔ | 0.01% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods | |
hikka/inline/form.py | Form.form | 91 ⛔ | 1095 ⛔ | 0.43% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods | |
hikka/inline/gallery.py | Gallery.gallery | 83 ⛔ | 967 ⛔ | 0.69% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods | |
hikka/security.py | SecurityManager.check | 113 ⛔ | 789 ⛔ | 27 ⛔ | 1.51% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
hikka/inline/list.py | List.list | 60 ⛔ | 747 ⛔ | 2.72% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods |
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!
.data
attribute)device_model
to bypass fraud detectionhikka-tl
in accordance to upstream telethon v1hikka-pyro
in accordance to upstream pyrogrampathlib
--no-web
login.weburl
and--no-web
is usedsudo
andsupport
UnitHeta
,Translator
no_pm
,no_channels
,no_groups
,no_inline
,no_stickers
,no_docs
,no_audios
,no_videos
,no_photos
,no_forwards
,no_reply
,no_mention
,mention
,only_reply
,only_forwards
s
as command prefix, since it will break commandsetprefix