PornHub icon indicating copy to clipboard operation
PornHub copied to clipboard

cocote

Open zYxDevs opened this issue 2 years ago • 1 comments

zYxDevs avatar Aug 11 '22 14:08 zYxDevs

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 1.28%.

Quality metrics Before After Change
Complexity 2.20 ⭐ 2.31 ⭐ 0.11 👎
Method Length 99.75 🙂 107.31 🙂 7.56 👎
Working memory 11.03 😞 11.44 😞 0.41 👎
Quality 58.29% 🙂 57.01% 🙂 -1.28% 👎
Other metrics Before After Change
Lines 230 275 45
Changed files Quality Before Quality After Quality Change
Phub.py 58.29% 🙂 57.01% 🙂 -1.28% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
Phub.py sarch 4 ⭐ 232 ⛔ 13 😞 47.08% 😞 Try splitting into smaller methods. Extract out complex expressions
Phub.py callback_query_next 3 ⭐ 202 😞 14 😞 48.65% 😞 Try splitting into smaller methods. Extract out complex expressions
Phub.py callback_query_next 3 ⭐ 198 😞 14 😞 48.95% 😞 Try splitting into smaller methods. Extract out complex expressions
Phub.py callback_query_next 1 ⭐ 207 ⛔ 14 😞 50.28% 🙂 Try splitting into smaller methods. Extract out complex expressions
Phub.py callback_query_dl 3 ⭐ 204 😞 10 😞 55.12% 🙂 Try splitting into smaller methods. Extract out complex expressions

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!

sourcery-ai[bot] avatar Aug 11 '22 14:08 sourcery-ai[bot]