Skip to content

Commit

Permalink
chore: Added hooks
Browse files Browse the repository at this point in the history
Refs: #56
  • Loading branch information
pbezliapovich committed Oct 24, 2024
1 parent 77e4959 commit fd6bbc8
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 @@ -9,15 +9,30 @@ 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
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, '--top-keys=openapi,info,servers,paths,components']
- 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.1
hooks:
Expand Down

0 comments on commit fd6bbc8

Please sign in to comment.