Skip to content

Commit

Permalink
chore: Updated pre-commit hooks to match java-repo-template
Browse files Browse the repository at this point in the history
Refs: #72
  • Loading branch information
pbezliapovich committed Oct 29, 2024
1 parent 802831c commit 485ba15
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,28 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: trailing-whitespace
- id: check-xml
- id: check-json
- id: check-yaml
- id: no-commit-to-branch
- id: mixed-line-ending
- id: end-of-file-fixer
- repo: local
hooks:
- id: sensitive-data-leak-urls
name: Sensitive data leak - URLs
entry: (?<!polarion-opensource@)(?<!www\.)sbb\.ch
language: pygrep
types: [ text ]
- id: sensitive-data-leak-ue-numbers
name: Sensitive data leak - UE numbers
entry: \b([uUeE]{1,2})\d{5,6}\b
language: pygrep
types: [ text ]
- repo: https://github.com/zricethezav/gitleaks
rev: v8.21.2
hooks:
Expand Down

0 comments on commit 485ba15

Please sign in to comment.