Skip to content

Commit

Permalink
Merge pull request #221 from angrezichatterbox/Add-Format-to-Pre-Commit
Browse files Browse the repository at this point in the history
feat:Added formating fixes in pre-commit
  • Loading branch information
andrewtavis authored Oct 25, 2024
2 parents 5541547 + 2240654 commit f2286b6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions pre-commit-config.yaml → .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,30 @@ repos:
rev: v4.5.0
hooks:
- id: trailing-whitespace
files: \.kt$
- id: end-of-file-fixer
files: \.kt$
- id: check-yaml

- repo: local
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 f2286b6

Please sign in to comment.