代码拉取完成,页面将自动刷新
exclude: '.*\.(pcap|pcapng|dat|txt)'
fail_fast: false
repos:
- repo: local
hooks:
- id: check-clang-format-version
name: Check clang-format version
entry: python3 ./ci/check-clang-format-version.py
language: system
- id: clang-format
name: Clang format
entry: clang-format
language: system
args: ["--style=file"] # Use the .clang-format file for configuration
files: ^Common\+\+/.*\.(cpp|h)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-case-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=lf']
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: cppcheck
args: ["--std=c++11", "--language=c++", "--suppressions-list=cppcheckSuppressions.txt", "--inline-suppr", "--force"]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
pass_filenames: false
- repo: https://github.com/crate-ci/typos
rev: v1.21.0
hooks:
- id: typos
args: ['--config=typos-config.toml']
pass_filenames: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。