-
Notifications
You must be signed in to change notification settings - Fork 44
/
.pre-commit-config.yaml
36 lines (36 loc) · 1021 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: fix-byte-order-marker
- id: mixed-line-ending
args: ['--fix=lf']
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-json
exclude: ^.*invalid.*\.json$
- id: check-xml
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or:
- java
- markdown
additional_dependencies:
- prettier@2.7.1
- prettier-plugin-java@1.4.0
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.27.4
hooks:
- id: check-dependabot
- id: check-github-actions
- id: check-github-workflows
- repo: https://github.com/returntocorp/semgrep
rev: v1.59.1
hooks:
- id: semgrep
types: [java]
args: ["--config", ".sempgrep.yaml", "--error", "--metrics=off"]