-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
94 lines (93 loc) · 2.67 KB
/
.pre-commit-config.yaml
File metadata and controls
94 lines (93 loc) · 2.67 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
# yaml-language-server: $schema=https://json.schemastore.org/pre-commit-config.json
minimum_pre_commit_version: 2.17.0
fail_fast: false
default_stages:
- commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: no-commit-to-branch
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-json
- id: check-xml
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.6
hooks:
- id: forbid-binary
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.14.2
hooks:
- id: check-jsonschema
name: Validate GitHub Workflows
files: ^\.github/workflows/.*\.yml
types:
- yaml
args:
- --schemafile
- https://json.schemastore.org/github-workflow.json
- id: check-jsonschema
name: Validate DependaBot
files: ^\.github/dependabot\.yml
types:
- yaml
args:
- --schemafile
- https://json.schemastore.org/dependabot-2.0.json
- id: check-jsonschema
name: Validate Pre-commit
files: .*\.pre-commit-config\.yaml
types:
- yaml
args:
- --schemafile
- https://json.schemastore.org/pre-commit-config.json
- id: check-jsonschema
name: Validate Docker-Compose
files: .*docker-compose\.yml
types:
- yaml
args:
- --schemafile
- https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
- id: check-jsonschema
name: Validate Renovate
files: ^\.github/renovate\.json
types:
- json
args:
- --schemafile
- https://docs.renovatebot.com/renovate-schema.json
- --disable-format
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.21.2
hooks:
- id: commitizen
name: Lint commit message
stages:
- commit-msg
- repo: https://github.com/zricethezav/gitleaks
rev: v8.15.3
hooks:
- id: gitleaks
name: Detect hardcoded secrets
- repo: local
hooks:
- id: maven-spotless
name: Maven Spotless apply
entry: bash -c './mvnw -q spotless:apply'
language: system
types: [java]