-
-
Notifications
You must be signed in to change notification settings - Fork 477
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.44 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: >
(?x)^(
project/app/src/main/res/values-[a-z]{2}/strings.xml
)$
- id: end-of-file-fixer
exclude: >
(?x)^(
project/app/objectbox-models/default.json|
project/app/src/main/res/values-[a-z]{2}/strings.xml
)$
- id: check-merge-conflict
- id: check-yaml
- id: check-xml
- id: check-toml
- id: check-added-large-files
- id: mixed-line-ending
exclude: project/gradlew.bat
args: ["--fix=lf"]
- repo: https://github.com/rhysd/actionlint
rev: v1.6.27
hooks:
- id: actionlint-docker
name: Actionlint
description: Lint GitHub Actions workflow files
- repo: local
hooks:
- id: unit-test
name: Run unit tests
description: Runs unit-tests
entry: ./project/gradlew -p project testGmsDebugUnitTest
pass_filenames: false
types_or:
- kotlin
- java
language: system
- id: ktfmt
name: Ktfmt
description: Formats kotlin files
entry: ./project/gradlew -p project ktfmtFormat
pass_filenames: false
types_or:
- kotlin
language: system