forked from elastic/apm-integration-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (45 loc) · 1.43 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: check-case-conflict
exclude: ^target/
- id: check-executables-have-shebangs
exclude: (^scripts/kibana/validate-ts-interfaces-against-apm-server-sample-docs/scripts/download-sample-docs.ts$|^target/)
- id: check-json
exclude: ^target/
- id: check-merge-conflict
exclude: ^target/
- id: check-xml
exclude: ^target/
- id: end-of-file-fixer
exclude: ^target/
- repo: https://github.com/detailyang/pre-commit-shell.git
rev: master
hooks:
- id: shell-lint
name: "Shellscript: lint"
stages: [commit]
types: [shell]
exclude: (^mvnw$|^target/)
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.25.0
hooks:
- id: yamllint
name: "Yaml: lint"
args: ['-c','.ci/.yamlint.yml']
stages: [commit]
types: [yaml]
exclude: (^.pre-commit-config.yaml$|^.ci/.yamlint.yml$|^target/)
- repo: https://github.com/elastic/apm-pipeline-library
rev: current
hooks:
- id: check-bash-syntax
- id: check-abstract-classes-and-trait
- id: check-jsonslurper-class
- id: check-jenkins-pipelines
- id: check-unicode-non-breaking-spaces
- id: remove-unicode-non-breaking-spaces
- id: check-en-dashes
- id: remove-en-dashes
- id: check-jjbb