Skip to content

Commit

Permalink
Merge pull request #2081 from govuk-one-login/bau-pre-commit-dont-use…
Browse files Browse the repository at this point in the history
…-my-repo

BAU: Run spotless in pre-commit with local hook
  • Loading branch information
Wynndow authored Jun 27, 2024
2 parents e82e79a + d8575d8 commit f346a24
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ repos:
verbose: true
args: [--soft-fail]

- repo: https://github.com/Wynndow/spotless-pre-commit.git
rev: 'v0.2.0'
- repo: local
hooks:
- id: spotlessCheck
name: Run spotless check
entry: ./gradlew spotlessCheck
language: system
pass_filenames: false
files: \.(java|gradle)

0 comments on commit f346a24

Please sign in to comment.