Skip to content

Commit f980ccc

Browse files
authored
integrated precomit hooks (#73)
1 parent bf2a6ae commit f980ccc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: swiftformat
5+
name: Swift Format
6+
description: Enforces formatting guidelines for Swift files before committing.
7+
language: system
8+
entry: swiftformat --swiftversion 5
9+
stages:
10+
- pre-commit
11+
12+
- id: swiftlint
13+
name: Swift Linter
14+
description: Runs a linter before committing to ensure code quality.
15+
language: system
16+
always_run: true
17+
entry: swiftlint lint --lenient --config .swiftlint.yml
18+
stages:
19+
- pre-commit

0 commit comments

Comments
 (0)