招聘网站开发源代码,蜜雪冰城网页设计素材,国外采购网站大全,深圳建材公司appclang_format
clang_format是什么
代码格式化工具
clang_format 官网和官网教程
中文教程 下载
sudo apt install clang
sudo apt install clang-format#查看下载是否成功
clang --version
代码的构建到提交的过程#xff1a;
cmake ..
make
make test
make clang_f…clang_format
clang_format是什么
代码格式化工具
clang_format 官网和官网教程
中文教程 下载
sudo apt install clang
sudo apt install clang-format#查看下载是否成功
clang --version
代码的构建到提交的过程
cmake ..
make
make test
make clang_format_check cpplint
cpplint是什么
Cpplint只是一个代码风格检测的Python脚本工具。 cpplint之后的规范错误就是需要修改的。
cpplint的简单教程
链接1 cmake使用cpplint gitlint工具
gitlint是什么
gitlint官方文档 下载
官方文档有下载教程。
gitlint要求的提交规范
proxychains git commit -m refactor():refactor xml alarm file parsing code
gitlint..................................................................Failed
- hook id: gitlint
- exit code: 1[proxychains] DLL init: proxychains-ng 4.16
1: CT1 Title does not follow ConventionalCommits.org format type(optional-scope): descriptiontype(optional-scope): description
注意
1optional-scope可以省略
2冒号之后有一个空格不可以省略。
type的类型
gitlint..................................................................Failed
- hook id: gitlint
- exit code: 1[proxychains] DLL init: proxychains-ng 4.16
1: CT1 Title does not start with one of feat, fix, docs, style, perf, test
type的作用
表明这次提交的代码的作用。
- docs文档 - feat新特性 - fix修复问题 - build构建相关 - test测试相关 - chore杂项、维护性操作等 - style代码风格 - refactor代码重构 - perf性能优化
注意有几个特性不支持。
optional-scope的作用 cmake使用gitlint