-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
95 lines (73 loc) · 2.14 KB
/
.pre-commit-config.yaml
File metadata and controls
95 lines (73 loc) · 2.14 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
# https://github.com/antonbabenko/pre-commit-terraform
# brew install pre-commit terraform-docs tflint tfsec trivy checkov terrascan infracost tfupdate minamijoyo/hcledit/hcledit jq
# https://github.com/pre-commit/pre-commit-hooks
# https://github.com/python-jsonschema/check-jsonschema/
# https://github.com/trufflesecurity/trufflehog
fail_fast: true
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
name: Check Conventional Commit
stages: [commit-msg]
args: [--strict, --force-scope]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
name: Check YAML
stages: [pre-commit]
- id: mixed-line-ending
name: Check Mixed Line Endings
stages: [pre-commit]
args: [--fix=lf]
- id: end-of-file-fixer
name: Check End of Files
stages: [pre-commit]
- id: trailing-whitespace
name: Check Trailing Whitespace
stages: [pre-commit]
args: [--markdown-linebreak-ext=md]
- id: check-merge-conflict
name: Check for Merge Conflicts
stages: [pre-commit]
- id: detect-private-key
name: Check Private Keys
stages: [pre-commit]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
hooks:
- id: check-github-workflows
name: Check GitHub Workflows
stages: [pre-commit]
args: ["--verbose"]
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
name: GO Format
# - id: go-vet
- id: go-imports
name: GO Imports
- id: go-cyclo
name: GO Cyclomatic Complexity
args: [-over=15]
- id: validate-toml
name: GO Validate TOML
- id: no-go-testing
name: GO No Testing
# - id: golangci-lint
# - id: go-critic
# name: GO Critic
# - id: go-unit-tests
# - id: go-build
- id: go-mod-tidy
name: GO Mod Tidy
# - repo: https://github.com/jvstein/pre-commit-dotnet-format
# rev: 'v0.3'
# hooks:
# - id: dotnet-format
# name: .Net Format
# args: ['dotnet/dotnet-app-blueprint.sln']