rahulkhatri137 / mirrorbot137

Lightweight but powerful Telegram Mirror bot
GNU General Public License v3.0
37 stars 172 forks source link

chore: Fix msg_id & Drop PHPSESSID #12

Closed rahulkhatri137 closed 2 years ago

rahulkhatri137 commented 2 years ago

Signed-off-by: rahulkhatri137 rahulkhatri137@gmail.com

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 44.21 ⛔ 43.73 ⛔ -0.48 👍
Method Length 134.75 😞 134.25 😞 -0.50 👍
Working memory 11.48 😞 11.48 😞 0.00
Quality 39.33% 😞 39.42% 😞 0.09% 👍
Other metrics Before After Change
Lines 1029 1027 -2
Changed files Quality Before Quality After Quality Change
bot/init.py 23.48% ⛔ 23.57% ⛔ 0.09% 👍
bot/helper/mirror_utils/download_utils/direct_link_generator.py 60.72% 🙂 60.75% 🙂 0.03% 👍
bot/helper/mirror_utils/upload_utils/pyrogramEngine.py 37.41% 😞 37.41% 😞 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
bot/helper/mirror_utils/upload_utils/pyrogramEngine.py TgUploader.upload_file 69 ⛔ 654 ⛔ 19 ⛔ 5.93% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
bot/helper/mirror_utils/download_utils/direct_link_generator.py fichier 30 😞 330 ⛔ 16 ⛔ 19.47% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
bot/helper/mirror_utils/download_utils/direct_link_generator.py direct_link_generator 25 😞 225 ⛔ 27 ⛔ 20.52% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
bot/helper/mirror_utils/upload_utils/pyrogramEngine.py TgUploader.upload 13 🙂 153 😞 9 🙂 52.29% 🙂 Try splitting into smaller methods
bot/helper/mirror_utils/download_utils/direct_link_generator.py zippy_share 8 ⭐ 188 😞 8 🙂 55.77% 🙂 Try splitting into smaller methods

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!