utra-robosoccer / soccer-embedded

Collection of embedded programs for an autonomous humanoid soccer robot
http://utrahumanoid.ca
32 stars 8 forks source link

Automating code styling #186

Open tygamvrelis opened 5 years ago

tygamvrelis commented 5 years ago

Describe the feature Automate the task of making sure code is styled consistently.

Reason for request Despite people's best intentions and the fact that we have a coding style, it is still easy for little things to accidentally slip past a developer and/or reviewer's eyes (e.g. tabs vs spaces). Automating this task would lessen the burden on developers and would improve code consistency.

Timeline Not urgent.

Additional information Astyle seems to be a popular choice for automatic code styling, and it looks like it can be incorporated into makefiles easily.

tygamvrelis commented 5 years ago

Update: seems like clang-format is another popular choice