-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
47 lines (40 loc) · 1.79 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#**************************************************************************************************
#* Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ *
#* *
#* This program and the accompanying materials are made available under the *
#* terms of the MIT License which is available at https://opensource.org/licenses/MIT. *
#* *
#* SPDX-License-Identifier: MIT *
#**************************************************************************************************/
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pocc/pre-commit-hooks
rev: master
hooks:
- id: clang-tidy
name: clang-tidy
entry: clang-tidy -p=build
--system-headers
--fix-errors
# Code formatting (see .clang-format for config used).
- id: clang-format
name: clang-format
args: [-i]
# Static code analysis (for C++ files).
- id: cppcheck
name: cppcheck
args: [--enable=all,
--error-exitcode=1,
--language=c++,
--suppressions-list=./.cppcheck.suppress]
files: \.(cpp|hpp)$
# Coding style analysis. Based on Google C++ code style.
# cpplint configuration can be found in CPPLINT.cfg.
- id: cpplint