Tectu / malloy

A cross-platform C++20 library providing embeddable server & client components for HTTP and WebSocket.
BSD 3-Clause "New" or "Revised" License
68 stars 8 forks source link

Add clang-format lint check to CI #31

Closed 0x00002a closed 3 years ago

0x00002a commented 3 years ago

This adds a check which will fail if the code in a PR or push is not formatted according to the .clang-format file. It skips 3rdparty code.

It also has a fix for the .clang-format file since the CI version took issue with it. I assume thats because it runs an earlier version of clang-format.

Note this currently fails. I've tested it by running clang-format -i over the codebase and the command succeeds after that.

Ref: #22

Tectu commented 3 years ago

Looking good, thank you! :)