-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix astyle errors (clears all remaining styling issues) #8711
Conversation
304eb57
to
427ad7a
Compare
69bf4a8
to
fc05eec
Compare
The style check works - it errors if there is style issue. I'll rebase to remove style issue and should get green. This still needs reviews |
Targets will be styled separately
As our codebase is 0 styling errors, we should start treating astyle errors as pull request blockers. Time to follow our coding style.
To get to failure, we need to exit with 1
fc05eec
to
a2ae34b
Compare
Conflict resolved, removed style error for testing, rebased to the latest master |
8 styling issues on master, rerunning travis to report them and will fix |
c23d226
to
3f289c2
Compare
AStyle - 0 errors, please review! This was tested with an error, and without. I would suggest to get this for 5.11 (asap) otherwise we will have conflicts all the time (not that simple to rebase and rerun astyle to check for errors) |
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.
LGTM!
enet_tasklet_network_state_changed(MESH_CONNECTED_GLOBAL); | ||
} else { | ||
enet_tasklet_network_state_changed(MESH_CONNECTED_LOCAL);; | ||
} | ||
} | ||
} else { | ||
if (tasklet_data_ptr->connection_status != MESH_DISCONNECTED && | ||
tasklet_data_ptr->connection_status != MESH_BOOTSTRAP_STARTED) | ||
tasklet_data_ptr->connection_status != MESH_BOOTSTRAP_STARTED) { | ||
enet_tasklet_network_state_changed(MESH_DISCONNECTED); |
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.
I'm a bit concerned and bothered that astyle caught this..
if (NULL == os_timer) { | ||
os_timer = new (os_timer_data) rtos::internal::SysTimer(); | ||
os_timer->setup_irq(); | ||
} |
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.
The way GitHub handled this diff is odd...
Minus. Nice |
Info: This PR has been re-bundled into a new rollup PR (#8763). The previous rollup found an issue with a bundled PR after new devices were added into master. The PR needing work has been removed. No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. |
Description
Last clean up for master - run astyle for all files.
Main goal: turn astyle coding failures to errors (I'll test it here that styling error causes PR red)
Pull request type