-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
61 lines (56 loc) · 1.77 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
57
58
59
60
61
# 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.29.0
hooks:
- id: commitizen
name: Check commit message format
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: detect-private-key
- id: check-merge-conflict
- repo: local
hooks:
- id: coding-standard-fixer
name: PHP and Prestashop coding standards Fixer test
language: system
pass_filenames: false
entry: task lint:fix
stages: [commit]
- id: coding-standard
name: Check the PHP and Prestashop coding standards
language: system
pass_filenames: false
entry: task lint
stages: [commit]
- id: php-compatibility
name: Check the PHP compatibility
language: system
pass_filenames: false
entry: task php-compatibility
stages: [commit]
- repo: https://github.com/returntocorp/semgrep
rev: v1.87.0
hooks:
- id: semgrep
args:
- --error
- --config
- semgrep/rules/
- --metrics
- "off"
- --quiet
- --disable-version-check
- --skip-unknown-extensions
pass_filenames: false # Passing files explicitely override semgremignore
- 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)$$"