Closed mrismanaziz closed 2 years ago
✅ Merging this PR will increase code quality in the affected files by 0.20%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 13.91 🙂 | 13.76 🙂 | -0.15 👍 |
Method Length | 102.31 🙂 | 100.71 🙂 | -1.60 👍 |
Working memory | 10.45 😞 | 10.43 😞 | -0.02 👍 |
Quality | 54.70% 🙂 | 54.90% 🙂 | 0.20% 👍 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 16523 | 16682 | 159 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
userbot/init.py | 31.52% 😞 | 29.05% 😞 | -2.47% 👎 |
userbot/main.py | 45.58% 😞 | 39.41% 😞 | -6.17% 👎 |
userbot/clients/logger.py | 62.05% 🙂 | 40.79% 😞 | -21.26% 👎 |
userbot/clients/startup.py | 28.76% 😞 | 27.26% 😞 | -1.50% 👎 |
userbot/core/data.py | 96.01% ⭐ | ||
userbot/core/git.py | 72.52% 🙂 | ||
userbot/modules/__help.py | 43.65% 😞 | 42.94% 😞 | -0.71% 👎 |
userbot/modules/init.py | 67.90% 🙂 | 68.65% 🙂 | 0.75% 👍 |
userbot/modules/admin.py | 56.46% 🙂 | 56.44% 🙂 | -0.02% 👎 |
userbot/modules/afk.py | 34.83% 😞 | 39.68% 😞 | 4.85% 👍 |
userbot/modules/amongus.py | 45.89% 😞 | 45.89% 😞 | 0.00% |
userbot/modules/anilist.py | 58.08% 🙂 | 58.00% 🙂 | -0.08% 👎 |
userbot/modules/animation.py | 70.72% 🙂 | 70.72% 🙂 | 0.00% |
userbot/modules/appmisc.py | 46.64% 😞 | 46.84% 😞 | 0.20% 👍 |
userbot/modules/ascii.py | 53.96% 🙂 | 54.03% 🙂 | 0.07% 👍 |
userbot/modules/asupan.py | 88.55% ⭐ | 81.72% ⭐ | -6.83% 👎 |
userbot/modules/blacklist.py | 73.36% 🙂 | 73.26% 🙂 | -0.10% 👎 |
userbot/modules/botcontrol.py | 66.45% 🙂 | 66.55% 🙂 | 0.10% 👍 |
userbot/modules/broadcast.py | 57.01% 🙂 | 57.01% 🙂 | 0.00% |
userbot/modules/button.py | 53.80% 🙂 | 54.37% 🙂 | 0.57% 👍 |
userbot/modules/carbon.py | 56.75% 🙂 | 56.80% 🙂 | 0.05% 👍 |
userbot/modules/chat.py | 38.01% 😞 | 35.88% 😞 | -2.13% 👎 |
userbot/modules/chatbot.py | 81.01% ⭐ | 81.33% ⭐ | 0.32% 👍 |
userbot/modules/clone.py | 55.12% 🙂 | 54.21% 🙂 | -0.91% 👎 |
userbot/modules/core.py | 72.66% 🙂 | 71.13% 🙂 | -1.53% 👎 |
userbot/modules/covid.py | 64.93% 🙂 | 65.37% 🙂 | 0.44% 👍 |
userbot/modules/createstickers.py | 55.56% 🙂 | 55.58% 🙂 | 0.02% 👍 |
userbot/modules/direct_links.py | 61.02% 🙂 | 61.02% 🙂 | 0.00% |
userbot/modules/fban.py | 50.88% 🙂 | 51.48% 🙂 | 0.60% 👍 |
userbot/modules/games.py | 75.52% ⭐ | 75.13% ⭐ | -0.39% 👎 |
userbot/modules/gban.py | 35.01% 😞 | 36.24% 😞 | 1.23% 👍 |
userbot/modules/gcast.py | 53.46% 🙂 | 58.50% 🙂 | 5.04% 👍 |
userbot/modules/globalban.py | 47.91% 😞 | 47.94% 😞 | 0.03% 👍 |
userbot/modules/help.py | 56.11% 🙂 | 52.63% 🙂 | -3.48% 👎 |
userbot/modules/heroku.py | 53.75% 🙂 | 53.87% 🙂 | 0.12% 👍 |
userbot/modules/imgmemes.py | 66.17% 🙂 | 66.51% 🙂 | 0.34% 👍 |
userbot/modules/kickme.py | 80.82% ⭐ | ||
userbot/modules/log.py | 60.71% 🙂 | 60.45% 🙂 | -0.26% 👎 |
userbot/modules/memes.py | 77.41% ⭐ | 77.41% ⭐ | 0.00% |
userbot/modules/memify.py | 43.65% 😞 | 43.65% 😞 | 0.00% |
userbot/modules/misc.py | 68.35% 🙂 | 67.83% 🙂 | -0.52% 👎 |
userbot/modules/offline.py | 32.42% 😞 | 32.14% 😞 | -0.28% 👎 |
userbot/modules/other.py | 69.31% 🙂 | 69.09% 🙂 | -0.22% 👎 |
userbot/modules/ping.py | 69.20% 🙂 | 69.21% 🙂 | 0.01% 👍 |
userbot/modules/pmbot.py | 58.54% 🙂 | 58.51% 🙂 | -0.03% 👎 |
userbot/modules/profile.py | 59.33% 🙂 | 58.43% 🙂 | -0.90% 👎 |
userbot/modules/purge.py | 74.02% 🙂 | 74.22% 🙂 | 0.20% 👍 |
userbot/modules/quotly.py | 17.00% ⛔ | 17.00% ⛔ | 0.00% |
userbot/modules/rastick.py | 61.71% 🙂 | 63.85% 🙂 | 2.14% 👍 |
userbot/modules/scrapers.py | 50.58% 🙂 | 50.23% 🙂 | -0.35% 👎 |
userbot/modules/stickers.py | 29.02% 😞 | 29.09% 😞 | 0.07% 👍 |
userbot/modules/sudo.py | 60.94% 🙂 | 61.06% 🙂 | 0.12% 👍 |
userbot/modules/tag_all.py | 53.90% 🙂 | 54.45% 🙂 | 0.55% 👍 |
userbot/modules/vcplugin.py | 36.45% 😞 | 37.00% 😞 | 0.55% 👍 |
userbot/modules/waifu.py | 71.03% 🙂 | 73.32% 🙂 | 2.29% 👍 |
userbot/modules/welcomes.py | 39.04% 😞 | 39.89% 😞 | 0.85% 👍 |
userbot/modules/sql_helper/global_collectionjson.py | 89.86% ⭐ | ||
userbot/utils/init.py | % | % | % |
userbot/utils/decorator.py | 49.58% 😞 | 50.22% 🙂 | 0.64% 👍 |
userbot/utils/events.py | 38.41% 😞 | 31.53% 😞 | -6.88% 👎 |
userbot/utils/format.py | 45.00% 😞 | 44.42% 😞 | -0.58% 👎 |
userbot/utils/progress.py | 37.56% 😞 | 34.59% 😞 | -2.97% 👎 |
userbot/utils/thumbnail.py | 63.08% 🙂 | 63.13% 🙂 | 0.05% 👍 |
userbot/utils/utils.py | 47.18% 😞 | 49.26% 😞 | 2.08% 👍 |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
userbot/modules/chat.py | fetch_info | 78 ⛔ | 877 ⛔ | 40 ⛔ | 0.80% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
userbot/modules/stickers.py | kang | 104 ⛔ | 1147 ⛔ | 24 ⛔ | 2.37% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
userbot/modules/vcplugin.py | vc_vplay | 49 ⛔ | 737 ⛔ | 33 ⛔ | 3.94% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
userbot/modules/appmisc.py | _ | 81 ⛔ | 513 ⛔ | 21 ⛔ | 4.49% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
userbot/modules/scrapers.py | download_video | 34 ⛔ | 706 ⛔ | 22 ⛔ | 10.78% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
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!
Signed-off-by: mrismanaziz mrismanaziz@gmail.com