Skip to content

Commit

Permalink
chore: Added hooks (#122)
Browse files Browse the repository at this point in the history
Refs: #121
  • Loading branch information
pbezliapovich authored Oct 24, 2024
1 parent 584b672 commit 86e4bd1
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,16 +9,31 @@ 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' ]
files: docs/openapi.json
- 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 86e4bd1

Please sign in to comment.