Skip to content

Commit 3021b83

Browse files
author
Oleg
committed
Add pre-commit config file
1 parent 64d7715 commit 3021b83

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
repos:
2+
# common hooks - should be added to template project
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v5.0.0
5+
hooks:
6+
- id: check-added-large-files
7+
- id: check-ast
8+
- id: check-json
9+
- id: check-toml
10+
- id: check-vcs-permalinks
11+
- id: check-yaml
12+
- id: debug-statements
13+
- id: end-of-file-fixer
14+
- id: mixed-line-ending
15+
args: [--fix, lf]
16+
- id: trailing-whitespace
17+
18+
# test harness specific hooks
19+
- repo: https://github.com/dustinsand/pre-commit-jvm
20+
rev: v0.11.0
21+
hooks:
22+
- name: ktlint (java/kotlin implementations)
23+
id: ktlint
24+
args: [--format]
25+
- name: detekt (java/kotlin implementations)
26+
id: detekt
27+
args: ["--build-upon-default-config"]

0 commit comments

Comments
 (0)