Setup automated clang-format
bobfang1992 opened this issue · comments
Bob Fang commented
I would like to use clang-format so we can have a consistent style for the long run. This should be automated, or at least we should have a .clang-format
file which specifies this style. Maybe add a pre-commit
hook to this? I would love to see some suggestions on this.
Laurie O commented
Usually it's easiest to check in CI if the code matches the style, and fail the job if linting fails. Here's a linting GitHub Action: https://github.com/marketplace/actions/clang-format-lint