Xtra-Plugins icon indicating copy to clipboard operation
Xtra-Plugins copied to clipboard

Unstable

Open Sharmaji04 opened this issue 4 years ago β€’ 1 comments

Himanshu op

Sharmaji04 avatar Mar 10 '22 14:03 Sharmaji04

Sourcery Code Quality Report

βœ… Β Merging this PR will increase code quality in the affected files by 0.64%.

Quality metrics Before After Change
Complexity 10.53 πŸ™‚ 9.92 πŸ™‚ -0.61 πŸ‘
Method Length 104.96 πŸ™‚ 105.20 πŸ™‚ 0.24 πŸ‘Ž
Working memory 11.61 😞 11.46 😞 -0.15 πŸ‘
Quality 52.73% πŸ™‚ 53.37% πŸ™‚ 0.64% πŸ‘
Other metrics Before After Change
Lines 1992 2035 43
Changed files Quality Before Quality After Quality Change
Cricket_info.py 81.53% ⭐ 81.53% ⭐ 0.00%
advice.py 88.45% ⭐ 88.45% ⭐ 0.00%
any_dl.py 27.30% 😞 29.11% 😞 1.81% πŸ‘
carbon.py 60.02% πŸ™‚ 60.00% πŸ™‚ -0.02% πŸ‘Ž
cc_tools.py 68.67% πŸ™‚ 68.67% πŸ™‚ 0.00%
collage.py 24.22% β›” 24.26% β›” 0.04% πŸ‘
fban.py 49.20% 😞 49.74% 😞 0.54% πŸ‘
github_search.py 37.61% 😞 37.68% 😞 0.07% πŸ‘
harem.py 80.30% ⭐ 80.08% ⭐ -0.22% πŸ‘Ž
imdb.py 36.80% 😞 36.88% 😞 0.08% πŸ‘
music_player.py 54.45% πŸ™‚ 54.90% πŸ™‚ 0.45% πŸ‘
rom_search.py 66.86% πŸ™‚ 61.87% πŸ™‚ -4.99% πŸ‘Ž
shazam.py 58.65% πŸ™‚ 58.65% πŸ™‚ 0.00%
unzip.py 42.14% 😞 42.14% 😞 0.00%
user-agent-info.py 56.14% πŸ™‚ 56.14% πŸ™‚ 0.00%
webtools.py 63.17% πŸ™‚ 63.17% πŸ™‚ 0.00%
helper_files/dl_.py 68.41% πŸ™‚ 68.76% πŸ™‚ 0.35% πŸ‘
helper_files/dl_helpers.py 81.47% ⭐ 81.50% ⭐ 0.03% πŸ‘

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

File Function Complexity Length Working Memory Quality Recommendation
any_dl.py download_ 36 β›” 473 β›” 22 β›” 10.58% β›” Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
music_player.py play_m 24 😞 479 β›” 17 β›” 19.79% β›” Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
collage.py create_s_collage 27 😞 289 β›” 15 😞 23.40% β›” Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
collage.py wow_collage 22 😞 298 β›” 16 β›” 25.00% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
fban.py fetch_all_fed 29 😞 196 😞 16 β›” 26.34% 😞 Refactor to reduce nesting. 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 Mar 30 '22 15:03 sourcery-ai[bot]