surtur
d8adb1af87
All checks were successful
continuous-integration/drone/push Build is passing
* project-wide refactor to accomodate removal of "using namespace xyz" to stop polluting top-level namespace with "std" as recommended by the Google C++ style guide. * use a pre-commit hook to enforce this ref: https://google.github.io/styleguide/cppguide.html#Namespaces
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
---
|
|
fail_fast: false
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
- repo: https://github.com/pocc/pre-commit-hooks
|
|
rev: v1.3.4
|
|
hooks:
|
|
- id: clang-tidy
|
|
args: ["-p", "cmake-build-debug"]
|
|
- id: cppcheck
|
|
args: ["--language=c++", "--std=c++20",
|
|
"--enable=warning,performance,portability,information,unusedFunction,missingInclude",
|
|
"--verbose"]
|
|
files: \.(cpp|cc|cxx,h)$
|
|
types: [file, c++]
|
|
types_or: [file, c++, header]
|
|
- repo: https://github.com/gringolito/cpp-pre-commit-hooks
|
|
rev: 3481ddf0fb
|
|
hooks:
|
|
- id: check-using-namespace-directive
|
|
- repo: local
|
|
hooks:
|
|
- id: make-test
|
|
name: make test
|
|
entry: make
|
|
args: ["test"]
|
|
language: system
|
|
pass_filenames: false
|
|
- id: build-release
|
|
name: make release
|
|
entry: make
|
|
args: ["release"]
|
|
language: system
|
|
pass_filenames: false
|