mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Added pre-commit hook repos
This commit is contained in:
parent
74b0aba916
commit
29334bb613
1 changed files with 21 additions and 17 deletions
|
@ -13,22 +13,26 @@ repos:
|
||||||
# - id: talisman-push
|
# - id: talisman-push
|
||||||
- id: talisman-commit
|
- id: talisman-commit
|
||||||
entry: cmd --githook pre-commit
|
entry: cmd --githook pre-commit
|
||||||
-
|
|
||||||
# - id: gitleaks
|
- repo: https://github.com/gitleaks/gitleaks
|
||||||
# name: Detect hardcoded secrets
|
rev: v8.16.1
|
||||||
# description: Detect hardcoded secrets using Gitleaks
|
hooks:
|
||||||
# entry: gitleaks protect --verbose --redact --staged
|
- id: gitleaks
|
||||||
# language: golang
|
name: Detect hardcoded secrets
|
||||||
# pass_filenames: false
|
description: Detect hardcoded secrets using Gitleaks
|
||||||
# - id: pretty-format-java
|
entry: gitleaks protect --verbose --redact --staged
|
||||||
# name: Google Java Formatter
|
language: golang
|
||||||
# description: Runs Google Java Formatter over Java source files
|
pass_filenames: false
|
||||||
# entry: pretty-format-java
|
|
||||||
# language: python
|
- id: pretty-format-java
|
||||||
# types: [ java ]
|
name: Google Java Formatter
|
||||||
# # this is needed because the hook downloads google-java-formatter and
|
description: Runs Google Java Formatter over Java source files
|
||||||
# # we don't have yet a nice way of ensuring a single download over multiple runs
|
entry: pretty-format-java
|
||||||
# require_serial: true
|
language: python
|
||||||
# minimum_pre_commit_version: '1'
|
types: [ java ]
|
||||||
|
# this is needed because the hook downloads google-java-formatter and
|
||||||
|
# we don't have yet a nice way of ensuring a single download over multiple runs
|
||||||
|
require_serial: true
|
||||||
|
minimum_pre_commit_version: '1'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue