-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (31 loc) · 878 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
31 lines (31 loc) · 878 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
exclude: "Alamofire-master/.*"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: ".*\\.(html|plist)$"
- id: end-of-file-fixer
exclude: ".*\\.(xcstrings|html|plist|json)$"
- repo: local
hooks:
- id: swiftformat
name: SwiftFormat
entry: swiftformat --config .swiftformat.conf .
language: system
types: [swift]
stages: [pre-commit]
- id: swiftlint check
name: SwiftLintCheck
entry: swiftlint . --strict --config .swiftlint.yml
language: system
types: [swift]
stages: [pre-commit]
- repo: https://github.com/google/yamlfmt
rev: v0.13.0
hooks:
- id: yamlfmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml