Closed sourcery-ai[bot] closed 1 year ago
β Merging this PR will increase code quality in the affected files by 0.08%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 28.94 π | 28.68 π | -0.26 π |
Method Length | 86.75 π | 88.62 π | 1.87 π |
Working memory | 14.56 π | 14.31 π | -0.25 π |
Quality | 44.95% π | 45.03% π | 0.08% π |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 1360 | 1427 | 67 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
examples/docopt-greeter.py | 85.62% β | 82.58% β | -3.04% π |
shtab/init.py | 29.55% π | 29.61% π | 0.06% π |
shtab/main.py | 67.87% π | 67.82% π | -0.05% π |
tests/test_shtab.py | 78.96% β | 78.86% β | -0.10% π |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
shtab/init.py | complete_zsh | 61 β | 756 β | 27 β | 3.11% β | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
shtab/init.py | get_bash_commands | 78 β | 535 β | 24 β | 3.20% β | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
shtab/init.py | get_bash_commands.recurse | 58 β | 482 β | 24 β | 4.82% β | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
shtab/init.py | complete_tcsh | 53 β | 407 β | 19 β | 8.68% β | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
shtab/init.py | complete_zsh.recurse | 17 π | 213 β | 16 β | 32.81% π | 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!
Merging #76 (cf19980) into master (cf19980) will not change coverage. The diff coverage is
n/a
.:exclamation: Current head cf19980 differs from pull request most recent head 5eac02b. Consider uploading reports for the commit 5eac02b to get more accurate results
@@ Coverage Diff @@
## master #76 +/- ##
=======================================
Coverage 91.04% 91.04%
=======================================
Files 3 3
Lines 335 335
=======================================
Hits 305 305
Misses 30 30
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update cf19980...5eac02b. Read the comment docs.
Branch
master
refactored by Sourcery.If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.
See our documentation here.
Run Sourcery locally
Reduce the feedback loop during development by using the Sourcery editor plugin:
Review changes via command line
To manually merge these changes, make sure you're on the
master
branch, then run:Help us improve this pull request!