forked from CrowdStrike/terraform-provider-crowdstrike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (43 loc) · 1.2 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (43 loc) · 1.2 KB
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
repos:
- repo: https://github.com/golangci/golangci-lint
rev: v1.64.4
hooks:
- id: golangci-lint
- repo: local
hooks:
- id: go-mod-tidy
name: go mod tidy
entry: sh -c 'cd "$(dirname "$1")" && go mod tidy' --
language: system
files: ^go\.(mod|sum)$
pass_filenames: true
- id: go-generate
name: go generate
entry: go generate ./...
language: system
files: ^(examples/.*|internal/.*\.go)$
pass_filenames: false
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.100.0
hooks:
- id: terraform_fmt
args:
- --args=-recursive
- id: terraform_validate
args:
- --args=-json
files: ^examples/resources/.*\.tf$
exclude: ^examples/provider/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
- id: detect-private-key
- id: detect-aws-credentials