Closed janfreyberg closed 3 years ago
Merging this PR leaves code quality unchanged.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 1.52 ⭐ | 1.52 ⭐ | 0.00 |
Method Length | 34.20 ⭐ | 34.20 ⭐ | 0.00 |
Working memory | 7.48 🙂 | 7.48 🙂 | 0.00 |
Quality | 80.77% ⭐ | 80.77% ⭐ | 0.00% |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 199 | 199 | 0 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
src/superintendent/controls/buttongroup.py | 80.91% ⭐ | 80.91% ⭐ | 0.00% |
src/superintendent/controls/togglebuttongroup.py | 80.63% ⭐ | 80.63% ⭐ | 0.00% |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
src/superintendent/controls/buttongroup.py | ButtonGroup._valid_value | 5 ⭐ | 75 🙂 | 10 😞 | 67.64% 🙂 | Extract out complex expressions |
src/superintendent/controls/togglebuttongroup.py | ToggleButtonGroup._valid_value | 5 ⭐ | 75 🙂 | 10 😞 | 67.64% 🙂 | Extract out complex expressions |
src/superintendent/controls/buttongroup.py | ButtonGroup.__init__ | 3 ⭐ | 47 ⭐ | 10 😞 | 73.98% 🙂 | Extract out complex expressions |
src/superintendent/controls/togglebuttongroup.py | ToggleButtonGroup.__init__ | 3 ⭐ | 47 ⭐ | 10 😞 | 73.98% 🙂 | 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!
Let us know what you think of it by mentioning @sourcery-ai in a comment.
This is purely a formatting check to stop the linter complaining