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
59 lines (57 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
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)^(internal/config/kubernetes.*)$
- id: check-xml
- id: end-of-file-fixer
exclude: >
(?x)^(
cli/NOTICE.txt|
e2e/NOTICE.txt|
.stack-version
)$
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
hooks:
- id: go-fmt
- 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-gherkin-lint
args: [
"--disable", "AvoidOutlineForSingleExample,TooClumsy,TooManyTags,TooLongStep,TooManyDifferentTags,TooManySteps,UseBackground",
"e2e/_suites/**/*.feature",
]