Files
libcoap/.pre-commit-config.yaml
T
Jon Shallow 98805f70a5 Documentation tidy up
Add in codespell to pre-commit to help fix documentation errors.
2026-08-08 12:05:03 +01:00

39 lines
1.5 KiB
YAML

repos:
- repo: https://github.com/igrr/astyle_py.git
rev: v1.0.5
hooks:
- id: astyle_py
files: '^.*\.(c|cpp|cxx|h|h.in|h.riot|h.riot.in|h.windows|h.windows.in|h.contiki|hpp|inc)$'
exclude: '^.*/(coap_uthash_internal.h|coap_utlist_internal.h)$|examples/riot/examples_libcoap_.*$|examples/riot/tests_pkg_libcoap/.*$|zephyr/.*$'
args: ['--style=google',
'--align-pointer=name',
'--align-reference=name',
'--attach-closing-while',
'--attach-return-type-decl',
'--break-after-logical',
'--break-one-line-headers',
'--break-return-type',
'--convert-tabs',
'--indent-continuation=2',
'--indent-preproc-define',
'--indent=spaces=2',
'--max-code-length=100',
'--max-continuation-indent=60',
'--min-conditional-indent=0',
'--pad-header',
'--unpad-paren']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude: 'tests/oss-fuzz/.*_seed_corpus/.*$'
- id: end-of-file-fixer
exclude: 'tests/oss-fuzz/.*_seed_corpus/.*$'
- id: check-merge-conflict
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
exclude: 'tests/oss-fuzz/.*_seed_corpus/.*$|examples/etsi_iot_01_largedata.txt|AUTHORS|examples/riot/Makefile'