Skip to content

Commit

Permalink
feat:Added formating fixes in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
angrezichatterbox committed Oct 23, 2024
1 parent 90c9205 commit 91cc574
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions pre-commit-config.yaml → .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,33 @@ repos:
rev: v4.5.0
hooks:
- id: trailing-whitespace
files: \.kt$
- id: end-of-file-fixer
files: \.kt$
- id: check-yaml

- repo: local
hooks:
hooks:
- id: formatKotlin
name: formatKotlin
entry: sh -c './gradlew formatKotlin'
language: system
types: [kotlin]
files: \.kt$

- id: ktlint
name: ktlint
entry: ./gradlew lintKotlin
entry: sh -c './gradlew lintKotlin'
language: system
types: [kotlin]
files: \.kt$

- id: detekt
name: detekt
entry: ./gradlew detekt
entry: sh -c './gradlew detekt'
language: system
types: [kotlin]
files: \.kt$



0 comments on commit 91cc574

Please sign in to comment.