roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.06k stars 213 forks source link

Add scons fmt check to Travis builds #309

Closed gavv closed 4 years ago

gavv commented 4 years ago

We have scons fmt command that formats the code according to our code style. It adds necessary copyright headers and runs clang-format.

It would be nice to check that the code is formatted in out Travis build, i.e. run scons fmt and ensure that it did not modify any source files (using git status I guess). If it did, fail the build.

The check can be added to the "Linux build checks" section: https://github.com/roc-project/roc/blob/4ebf1052c2d2048a2a4cb897a002c21d180e3bdc/.travis.yml#L60-L72

gavv commented 4 years ago

Assigned to @fusuiyi123

gavv commented 4 years ago

Merged.