Files
004_comission/ahhim526/_ref/computer-networks-project1_elec3120-c33fe69569bd/.pre-commit-config.yaml
louiscklaw 4afadb4bfd update,
2025-01-31 19:24:01 +08:00

25 lines
824 B
YAML

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://gitlab.com/daverona/pre-commit-cpp
rev: 0.8.0 # use the most recent version
hooks:
- id: clang-format # formatter of C/C++ code based on a style guide: LLVM, Google, Chromium, Mozilla, and WebKit available
args: ["-style=Google"]
- id: cpplint # linter (or style-error checker) for Google C++ Style Guide
- id: cppcheck # static analyzer of C/C++ code
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: ["--line-length", "79"]