Skip to content

Commit

Permalink
integrated precomit hooks (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-divyesh-v authored Dec 26, 2024
1 parent bf2a6ae commit f980ccc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
repos:
- repo: local
hooks:
- id: swiftformat
name: Swift Format
description: Enforces formatting guidelines for Swift files before committing.
language: system
entry: swiftformat --swiftversion 5
stages:
- pre-commit

- id: swiftlint
name: Swift Linter
description: Runs a linter before committing to ensure code quality.
language: system
always_run: true
entry: swiftlint lint --lenient --config .swiftlint.yml
stages:
- pre-commit

0 comments on commit f980ccc

Please sign in to comment.