-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.pre-commit-config.yaml
56 lines (50 loc) · 1.61 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.31.0
hooks:
- id: commitizen
name: Check commit message format
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: detect-private-key
- id: check-merge-conflict
# Uncomment this once the code is compliant with phpcs
# - repo: local
# hooks:
# - id: coding-standard-fixer
# name: Coding standards Fixer test
# language: system
# pass_filenames: false
# entry: task lint:fix
# stages: [commit]
# - id: coding-standard
# name: Check the PHP coding standards
# language: system
# pass_filenames: false
# entry: task lint
# stages: [commit]
- repo: https://github.com/returntocorp/semgrep
rev: v1.99.0
hooks:
- id: semgrep
args:
- --error
- --config
- semgrep/rules/
- --metrics
- "off"
- --disable-version-check
- --skip-unknown-extensions
pass_filenames: false # Passing files explicitely override semgrepignore
- repo: https://github.com/alma/pre-commit-hooks
rev: 1.1.2
hooks:
- id: check-branch-name
args:
- "-r^((chore|ci|dependabot|devx|docs|feature|fix|release|hotfix|hotfix-backport|infra|other|perf|refactor|security|test)\/.+|(snyk)-.+|main|develop|HEAD)$$"