-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (31 loc) · 849 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (31 loc) · 849 Bytes
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
# .pre-commit-config.yaml
repos:
- repo: local
hooks:
- id: swiftlint
name: SwiftLint
language: system
entry: swiftlint lint --config .swiftlint.yml
types: [swift]
pass_filenames: false
- id: xcode-build
name: Xcode Build
language: system
entry: make build
pass_filenames: false
- id: swiftformat
name: SwiftFormat
language: system
entry: swiftformat --config .swiftformat
types: [swift]
pass_filenames: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']