-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
56 lines (51 loc) · 1.63 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/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
- id: no-commit-to-branch
args: [--branch, develop, --branch, main]
- repo: local
hooks:
- id: coding-standard-fixer
name: Check PHP coding standards and fix
language: system
pass_filenames: false
entry: task lint:fix
stages: [commit]
- id: coding-standard
name: Check PHP 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.92.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)$$"