forked from intel/pailliercryptolib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
70 lines (69 loc) · 1.99 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
exclude: 'docs/doxygen/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
exclude: cmake/patch/ippcrypto_patch.patch
- id: end-of-file-fixer
exclude: cmake/patch/ippcrypto_patch.patch
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-yaml
- repo: https://github.com/crate-ci/typos
rev: typos-v0.8.2
hooks:
- id: typos
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: clang-format
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx|js|proto)$
args:
- -i
- id: shfmt
name: shfmt
entry: shfmt
language: system
files: \.sh$
args:
- -d
- -i
- '2'
- -ci
- -sr
- -bn
- -w
- id: cpplint
name: cpplint
entry: cpplint
language: system
files: \.(cxx|cpp|hpp|hxx)$
exclude: ipcl/bignum.cpp|module/heqat/heqat/misc/bignum.cpp
args:
- --recursive
- --filter=-runtime/references,-whitespace/comments,-whitespace/indent
- id: cpplint-c
name: cpplint-c
entry: cpplint
language: system
files: \.(c|cc|h)$
exclude: ipcl/include/ipcl/bignum.h|module/heqat/heqat/include/heqat/misc/bignum.h
args:
- --recursive
- --filter=-runtime/references,-whitespace/comments,-whitespace/indent,-readability/casting,-runtime/int,-runtime/printf
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
files: \.sh$
args:
- -s
- bash
- -e
- SC1091