-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (45 loc) · 1.19 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (45 loc) · 1.19 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# Generic checks/fixes
- id: no-commit-to-branch
- id: check-added-large-files
args: [--maxkb=512]
- id: check-merge-conflict
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
# File-type-specific checks/fixes
- id: check-yaml
- repo: local
hooks:
- id: checkstyle
name: Checkstyle
files: \.java$
language: system
entry: ./gradlew
args: [checkstyleMain, checkstyleTest]
pass_filenames: false
- id: spotless
name: Spotless
files: \.(java|kts?)$
language: system
entry: ./gradlew
args: [spotlessCheck, -x, processAot, -x, processTestAot]
pass_filenames: false
- id: detekt
name: Detekt
files: \.kts?$
language: system
entry: ./gradlew
args: [detekt]
pass_filenames: false
- id: ktlint
name: Ktlint
files: \.kts?$
language: system
entry: ./gradlew
args: [ktlintCheck]
pass_filenames: false