mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Initial commit
This commit is contained in:
parent
1f0ffcf05c
commit
74b0aba916
1 changed files with 25 additions and 34 deletions
|
@ -5,39 +5,30 @@ repos:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: talisman-commit
|
|
||||||
name: talisman
|
- repo: https://github.com/thoughtworks/talisman
|
||||||
entry: talisman --githook pre-commit
|
rev: 'v1.28.0' # Update me!
|
||||||
stages: [ commit ]
|
hooks:
|
||||||
# talisman currently discovers files by itself and does not take them on the cli
|
# both pre-commit and pre-push supported
|
||||||
pass_filenames: false
|
# - id: talisman-push
|
||||||
types: [ text ]
|
- id: talisman-commit
|
||||||
language: golang
|
entry: cmd --githook pre-commit
|
||||||
- id: gitleaks
|
-
|
||||||
name: Detect hardcoded secrets
|
# - id: gitleaks
|
||||||
description: Detect hardcoded secrets using Gitleaks
|
# name: Detect hardcoded secrets
|
||||||
entry: gitleaks protect --verbose --redact --staged
|
# description: Detect hardcoded secrets using Gitleaks
|
||||||
language: golang
|
# entry: gitleaks protect --verbose --redact --staged
|
||||||
pass_filenames: false
|
# language: golang
|
||||||
- id: gitleaks-docker
|
# pass_filenames: false
|
||||||
name: Detect hardcoded secrets
|
# - id: pretty-format-java
|
||||||
description: Detect hardcoded secrets using Gitleaks
|
# name: Google Java Formatter
|
||||||
entry: zricethezav/gitleaks protect --verbose --redact --staged
|
# description: Runs Google Java Formatter over Java source files
|
||||||
language: docker_image
|
# entry: pretty-format-java
|
||||||
- id: gitleaks-system
|
# language: python
|
||||||
name: Detect hardcoded secrets
|
# types: [ java ]
|
||||||
description: Detect hardcoded secrets using Gitleaks
|
# # this is needed because the hook downloads google-java-formatter and
|
||||||
entry: gitleaks protect --verbose --redact --staged
|
# # we don't have yet a nice way of ensuring a single download over multiple runs
|
||||||
language: system
|
# require_serial: true
|
||||||
- id: pretty-format-java
|
# minimum_pre_commit_version: '1'
|
||||||
name: Google Java Formatter
|
|
||||||
description: Runs Google Java Formatter over Java source files
|
|
||||||
entry: pretty-format-java
|
|
||||||
language: python
|
|
||||||
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