1 Star 0 Fork 0

何鹏/PcapPlusPlus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pre-commit-config.yaml 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
Dimitar Krastev 提交于 2024-08-14 11:54 . Clang-format for Pcap++ (#1516)
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
- 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: clang-format
args: ["--style=file"] # Use the .clang-format file for configuration
files: ^(Common\+\+|Packet\+\+|Pcap\+\+|Tests|Examples)/.*\.(cpp|h)$
- 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.23.6
hooks:
- id: typos
args: ['--config=typos-config.toml']
pass_filenames: false
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/he_peng1992/PcapPlusPlus.git
git@gitee.com:he_peng1992/PcapPlusPlus.git
he_peng1992
PcapPlusPlus
PcapPlusPlus
master

搜索帮助