Skip to content

Commit 704014a

Browse files
Jorgen-5Jorgen-5
andauthored
Pre commit (#482)
* Pre commit * Test * Test * Make single line --------- Co-authored-by: Jorgen-5 <rlj@ssb.no>
1 parent de45c73 commit 704014a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: ktlint
5+
name: ktlint-check-and-format
6+
entry: bash -c './gradlew ktlintCheck || ./gradlew ktlintFormat'
7+
language: system
8+
types: [kotlin]

0 commit comments

Comments
 (0)