Skip to content

Conversation

@famegfx
Copy link

@famegfx famegfx commented Jul 6, 2022

Huh

@sourcery-ai
Copy link

sourcery-ai bot commented Jul 6, 2022

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 10.46 🙂 10.46 🙂 0.00
Method Length 114.33 🙂 114.33 🙂 0.00
Working memory 11.49 😞 11.49 😞 0.00
Quality 52.40% 🙂 52.40% 🙂 0.00%
Other metrics Before After Change
Lines 457 450 -7
Changed files Quality Before Quality After Quality Change
tg_bot/main.py 52.40% 🙂 52.40% 🙂 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
tg_bot/main.py start 16 🙂 200 😞 16 ⛔ 34.54% 😞 Try splitting into smaller methods. Extract out complex expressions
tg_bot/main.py settings_button 10 🙂 283 ⛔ 16 ⛔ 35.11% 😞 Try splitting into smaller methods. Extract out complex expressions
tg_bot/main.py help_button 10 🙂 206 ⛔ 13 😞 43.05% 😞 Try splitting into smaller methods. Extract out complex expressions
tg_bot/main.py get_help 4 ⭐ 111 🙂 14 😞 56.94% 🙂 Extract out complex expressions
tg_bot/main.py main 5 ⭐ 162 😞 9 🙂 58.79% 🙂 Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant