This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
.pre-commit-config.yaml
60 lines (58 loc) · 1.62 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
exclude: ^notice/overrides.json
- id: check-merge-conflict
- id: check-yaml
exclude: >
(?x)^(cli/config/kubernetes.*)$
- id: check-xml
- id: end-of-file-fixer
exclude: >
(?x)^(
cli/NOTICE.txt|
e2e/NOTICE.txt
)$
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.3.5
hooks:
- id: go-fmt
- id: go-lint
- id: no-go-testing
- id: golangci-lint
args: ["--fix", "--fast", "--new"]
- repo: https://github.com/elastic/apm-pipeline-library
rev: current
hooks:
- id: check-bash-syntax
- id: check-jenkins-pipelines
- id: check-unicode-non-breaking-spaces
exclude: >
(?x)^(
.*/?\.*.(gif|jpg|png|tar.gz)
)$
- id: remove-unicode-non-breaking-spaces
exclude: >
(?x)^(
.*/?\.*.(gif|jpg|png|tar.gz)
)$
- id: check-en-dashes
exclude: >
(?x)^(
.*/?\.*.(tar.gz)
)$
- id: remove-en-dashes
exclude: >
(?x)^(
.*/?\.*.(tar.gz)
)$
- id: check-jjbb
- id: check-gherkin-lint
args: [
"--disable", "AvoidOutlineForSingleExample,TooClumsy,TooManyTags,TooLongStep,TooManyDifferentTags,TooManySteps,UseBackground",
"e2e/_suites/**/*.feature",
]