Closed bobfang1992 closed 4 years ago
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
Closed via df5845e8e0fcd117e2e43fc15680e74b2d130f3e
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 apre-commit
hook to this? I would love to see some suggestions on this.