Closed shamspias closed 2 years ago
✅ Merging this PR will increase code quality in the affected files by 1.02%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 7.70 ⭐ | 7.39 ⭐ | -0.31 👍 |
Method Length | 86.75 🙂 | 82.75 🙂 | -4.00 👍 |
Working memory | 13.14 😞 | 13.15 😞 | 0.01 👎 |
Quality | 44.93% 😞 | 45.95% 😞 | 1.02% 👍 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 108 | 114 | 6 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
Cogs/move.py | 39.68% 😞 | 39.65% 😞 | -0.03% 👎 |
Cogs/removeRemoverange.py | 51.49% 🙂 | 54.43% 🙂 | 2.94% 👍 |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
Cogs/move.py | CogMove.move | 11 🙂 | 371 ⛔ | 16 ⛔ | 31.88% 😞 | Try splitting into smaller methods. Extract out complex expressions |
Cogs/removeRemoverange.py | CogRemoveRemoverange.remove | 5 ⭐ | 231 ⛔ | 13 😞 | 46.16% 😞 | 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!
Solve for issues #13 and issues #14