-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (64 loc) · 1.94 KB
/
.pre-commit-config.yaml
File metadata and controls
64 lines (64 loc) · 1.94 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
default_install_hook_types: [pre-commit, post-checkout, post-rewrite, post-merge]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: pretty-format-json
stages: [pre-commit]
types: [ text ]
files: \.(json|arb)$
args: [ "--autofix" ]
- repo: https://github.com/jguttman94/pre-commit-gradle
rev: v0.3.0
hooks:
- id: gradle-spotless
stages: [pre-commit]
entry: gradle-spotless -w
files: \.(kt|kts)$
- id: gradle-task
stages: [pre-commit]
alias: gradle-spotless-buildSrc
name: "gradle spotless buildSrc"
entry: gradle-task :buildSrc:spotlessCheck :buildSrc:spotlessApply -w
files: ^buildSrc/.*\.(kt|kts)$
- repo: https://github.com/nicklockwood/SwiftFormat
rev: 0.57.2
hooks:
- id: swiftformat
stages: [pre-commit]
args: [ "--config","config.swiftformat" ]
- repo: local
hooks:
- id: generate-xcodeproj
stages: [post-checkout, post-rewrite, post-merge]
name: generate xcodeproj
entry: ./bin/generate-xcodeproj.sh
language: script
always_run: true
pass_filenames: false
- id: diff-xcodeproj
stages: [pre-commit]
name: diff xcodeproj
entry: ./bin/diff-xcodeproj.sh
language: script
files: ^iosApp/
pass_filenames: false
- id: cache-xcodeproj
stages: [pre-commit]
name: cache xcodeproj
entry: xcodegen cache --spec iosApp/project.yml
language: system
always_run: true
pass_filenames: false
- id: rubocop
stages: [pre-commit]
name: rubocop
entry: bundle exec rubocop -A
language: system
files: '\.rb$|file$'