Skip to content

Commit 2e5c782

Browse files
authored
Add pre-commit hook for linting
- `swift-lint` for invoking `swift-format lint` with the default options - `swift-lint-strict` for invoking `swift-format lint --strict`
1 parent 2f71242 commit 2e5c782

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,15 @@
44
language: swift
55
types: [swift]
66
require_serial: true
7+
- id: swift-lint
8+
name: swift-lint
9+
entry: swift-format lint
10+
language: swift
11+
types: [swift]
12+
require_serial: true
13+
- id: swift-lint-strict
14+
name: swift-lint-strict
15+
entry: swift-format lint --strict
16+
language: swift
17+
types: [swift]
18+
require_serial: true

0 commit comments

Comments
 (0)