Added pre-commit hook repos

This commit is contained in:
Sandeep Kulange 2024-05-10 20:36:12 +05:30
parent 74b0aba916
commit 29334bb613

View file

@ -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'