forked from dustinsand/pre-commit-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-hooks.yaml
38 lines (38 loc) · 1.17 KB
/
.pre-commit-hooks.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
37
38
---
- id: detekt
name: Detekt
description: "Runs the Detekt static code analyzer on Kotlin source files."
language: coursier
entry: detekt
pass_filenames: false
files: \.kt$
require_serial: true
- id: google-java-formatter-jdk8
name: Google Java Formatter
description: "Runs the Google Java Formatter on Java source files. Minimum supported runtime version is JDK 8."
language: coursier
entry: google-java-format-jdk8
files: \.java$
require_serial: true
- id: google-java-formatter-jdk11
name: Google Java Formatter
description: "Runs the Google Java Formatter on Java source files. Minimum supported runtime version is JDK 11."
language: coursier
entry: google-java-format-jdk11 --java-opt --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
files: \.java$
require_serial: true
- id: ktlint
name: ktlint
description: "Runs the ktlint linter and formatter on Kotlin source files."
language: coursier
entry: ktlint
files: \.kt$
require_serial: true
- id: pmd
name: PMD
description: "Runs the PMD static code analyzer on Java source files."
language: coursier
entry: pmd
pass_filenames: false
files: \.java$
require_serial: true