-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BENB scale endless velocity to its previous range #145
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: +0.00 (8.28 -> 8.28)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: +0.00 (8.28 -> 8.28)
Test Result:This PR fixes the Endless issue: https://github.com/orgs/intechstudio/projects/3/views/1?pane=issue&itemId=94759870 The Endless Velocity is consistent. minor bug: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: +0.00 (8.28 -> 8.28)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: +0.30 (8.28 -> 8.58)
- Improving Code Health: 4 findings(s) ✅
@@ -98,18 +98,20 @@ void grid_ui_element_endless_page_change_cb(struct grid_ui_element* ele, uint8_t | |||
// } | |||
} | |||
|
|||
uint8_t grid_ui_endless_update_trigger(struct grid_ui_element* ele, int stabilized, int16_t delta, uint64_t* endless_last_real_time, double* delta_vel_frac) { | |||
uint8_t grid_ui_endless_update_trigger(struct grid_ui_element* ele, int stabilized, int16_t delta, uint64_t* endless_last_real_time, double* delta_frac) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Getting better: Complex Method
grid_ui_endless_update_trigger decreases in cyclomatic complexity from 21 to 20, threshold = 9
if (update) { | ||
old_value->phase_a = new_value->phase_a; | ||
old_value->phase_b = new_value->phase_b; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ No longer an issue: Complex Method
grid_ui_endless_store_input is no longer above the threshold for cyclomatic complexity
if (update) { | ||
old_value->phase_a = new_value->phase_a; | ||
old_value->phase_b = new_value->phase_b; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ No longer an issue: Bumpy Road Ahead
grid_ui_endless_store_input is no longer above the threshold for logical blocks with deeply nested code
@@ -98,18 +98,20 @@ void grid_ui_element_endless_page_change_cb(struct grid_ui_element* ele, uint8_t | |||
// } | |||
} | |||
|
|||
uint8_t grid_ui_endless_update_trigger(struct grid_ui_element* ele, int stabilized, int16_t delta, uint64_t* endless_last_real_time, double* delta_vel_frac) { | |||
uint8_t grid_ui_endless_update_trigger(struct grid_ui_element* ele, int stabilized, int16_t delta, uint64_t* endless_last_real_time, double* delta_frac) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Getting better: Overall Code Complexity
The mean cyclomatic complexity decreases from 6.43 to 6.14, threshold = 4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: +0.30 (8.28 -> 8.58)
- Improving Code Health: 4 findings(s) ✅
No description provided.