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.
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