clearlinux / swupd-server

Software update server (deprecated)
Other
13 stars 17 forks source link

build: add 'compliant' target for fixing code style issues #56

Closed phmccarty closed 7 years ago

phmccarty commented 7 years ago

To simplify the discovery of C code style issues and enforce the rules specified in .clang-format, I've added a new 'compliant' target for running the appropriate clang-format command.

In case code style issues are found, source files are modified in place, and the resulting diff can be viewed. The exit code in this case will be 1, so make will exit with an error. This helps to automate testing for code style issues.