chengcli / canoe

Comprehensive Atmosphere N' Ocean Engine
14 stars 16 forks source link

Add a lint to enforce the naming convention in README #5

Open chengcli opened 1 year ago

chengcli commented 1 year ago

Currently, this repo uses cpplint to enforce c++ style. But cpplint does not check naming conventions. Is it possible to find a lint library that check cpp naming convention? Basically, I would like to enforce:

Name your folders and files

Name your variables and classes

Name your funcions

happysky19 commented 1 year ago

How about this one? https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html

chengcli commented 1 year ago

Yes, I think this can work. When you have a script to check, I'll give you an example of running it during pre-commit.