JGCRI / hector

The Hector Simple Climate Model
http://jgcri.github.io/hector/
GNU General Public License v3.0
111 stars 47 forks source link

Pre-commit hook or test for C++ code formatting? #636

Closed bpbond closed 1 year ago

bpbond commented 2 years ago

As noted here in #634 , we could enforce C++ coding style by either a pre-commit hook or a test.

Right now this seems like overkill, but opening this issue to track the idea after discussion with @kdorheim .

bpbond commented 2 years ago

https://datawookie.dev/blog/2022/09/enforcing-style-in-an-r-project/

bpbond commented 1 year ago

This seems unnecessary. We can just regularly reformat using clang-format.