Closed kianmeng closed 2 years ago
Merging this PR leaves code quality unchanged.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 42.39 ⛔ | 42.39 ⛔ | 0.00 |
Method Length | 132.61 😞 | 132.61 😞 | 0.00 |
Working memory | 2.16 ⭐ | 2.16 ⭐ | 0.00 |
Quality | 30.69% 😞 | 30.69% 😞 | 0.00% |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 815 | 815 | 0 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
shtab/init.py | 25.89% 😞 | 25.89% 😞 | 0.00% |
shtab/main.py | 70.21% 🙂 | 70.21% 🙂 | 0.00% |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
shtab/init.py | get_bash_commands | 78 ⛔ | 589 ⛔ | 1.22% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods | |
shtab/init.py | complete_zsh | 62 ⛔ | 900 ⛔ | 2.38% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods | |
shtab/init.py | complete_tcsh | 53 ⛔ | 470 ⛔ | 4.99% ⛔ | Refactor to reduce nesting. Try splitting into smaller methods | |
shtab/main.py | main | 8 ⭐ | 148 😞 | 7 🙂 | 61.90% 🙂 | Try splitting into smaller methods |
shtab/init.py | complete_bash | 2 ⭐ | 106 🙂 | 11 😞 | 64.30% 🙂 | 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!
Duplicate PR, https://github.com/iterative/shtab/pull/96.
Found via
codespell -L fo,vaue