Skip to content

Commit 4beda18

Browse files
committed
tweak pre-commit config
1 parent ebac9cf commit 4beda18

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# intentionally malformed files
21
# pre-commit automatically excludes submodules
3-
exclude: |
4-
(?x)^(
5-
test/.*|
6-
)$
2+
# exclude: |
3+
# (?x)^(
4+
# test/.*|
5+
# )$
76

87
repos:
98
# auto formatters (no work required) #############################################################
@@ -12,6 +11,7 @@ repos:
1211
hooks:
1312
- id: trailing-whitespace
1413
- id: end-of-file-fixer
14+
1515
- repo: local
1616
hooks:
1717
- id: phpcbf
@@ -20,6 +20,11 @@ repos:
2020
language: system
2121
files: \.php$
2222
args: [--standard=./.phpcs-ruleset.xml, --colors]
23+
exclude: |
24+
(?x)^(
25+
test/.*|
26+
workers/.*|
27+
)$
2328
2429
# linters (work required) ########################################################################
2530
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -30,10 +35,12 @@ repos:
3035
- id: check-xml
3136
- id: check-added-large-files
3237
- id: check-executables-have-shebangs
38+
3339
- repo: https://github.com/gitleaks/gitleaks
3440
rev: v8.23.1
3541
hooks:
3642
- id: gitleaks
43+
3744
- repo: local
3845
hooks:
3946
- id: phpcs
@@ -42,6 +49,11 @@ repos:
4249
language: system
4350
files: \.php$
4451
args: [--standard=./.phpcs-ruleset.xml, --colors]
52+
exclude: |
53+
(?x)^(
54+
test/.*|
55+
workers/.*|
56+
)$
4557
- id: php-l
4658
name: php -l
4759
entry: php

0 commit comments

Comments
 (0)