-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
50 lines (46 loc) · 1.35 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-aws-credentials
args: [ --allow-missing-credentials ]
- id: detect-private-key
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
- repo: https://github.com/awslabs/cfn-python-lint
rev: v0.86.3 # The version of cfn-lint to use
hooks:
- id: cfn-python-lint
files: .\/template\.yaml$
- repo: https://github.com/bridgecrewio/checkov.git
rev: '3.2.73'
hooks:
- id: checkov
verbose: true
args: [--soft-fail]
- repo: local
hooks:
- id: spotlessCheck
name: Run spotless check
entry: ./gradlew spotlessCheck
language: system
pass_filenames: false
files: \.(java|gradle)
- id: run-npm-lint
name: Lint API tests
entry: bash -c 'cd api-tests && npm run lint'
language: system
pass_filenames: false
files: ^api-tests/
- id: run-npm-lint-journey-map
name: Lint Journey Map
entry: bash -c 'cd journey-map && npm run lint'
language: system
pass_filenames: false
files: ^journey-map/