File tree Expand file tree Collapse file tree 3 files changed +17
-39
lines changed Expand file tree Collapse file tree 3 files changed +17
-39
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ test_quality:
20
20
- composer install
21
21
- vendor/bin/phpcs --standard=PSR12 -n src
22
22
# - vendor/bin/phpcs --standard=PSR12 -n tests --exclude=PSR1.Methods.CamelCapsMethodName
23
- - vendor/bin/phpstan analyse
23
+ - composer check-static
Original file line number Diff line number Diff line change 1
1
{
2
- "commit-msg" : {
3
- "enabled" : true ,
4
- "actions" : []
5
- },
6
- "pre-push" : {
7
- "enabled" : false ,
8
- "actions" : []
9
- },
10
2
"pre-commit" : {
11
3
"enabled" : true ,
12
4
"actions" : [
13
5
{
14
- "action" : " vendor/bin/phpcbf --standard=PSR12 src" ,
15
- "options" : []
16
- },
17
- {
18
- "action" : " vendor/bin/phpstan analyze" ,
19
- "options" : []
6
+ "action" : " composer format"
20
7
}
21
8
]
22
9
},
23
- "prepare-commit-msg" : {
24
- "enabled" : false ,
25
- "actions" : []
26
- },
27
- "post-commit" : {
28
- "enabled" : false ,
29
- "actions" : []
30
- },
31
- "post-merge" : {
32
- "enabled" : false ,
33
- "actions" : []
34
- },
35
- "post-checkout" : {
36
- "enabled" : false ,
37
- "actions" : []
38
- },
39
- "post-rewrite" : {
40
- "enabled" : false ,
41
- "actions" : []
42
- },
43
- "post-change" : {
10
+ "pre-push" : {
44
11
"enabled" : false ,
45
- "actions" : []
12
+ "actions" : [
13
+ {
14
+ "action" : " composer check-static"
15
+ }
16
+ ]
46
17
}
47
18
}
Original file line number Diff line number Diff line change 36
36
},
37
37
"require-dev" : {
38
38
"phpstan/phpstan" : " ^1.10" ,
39
- "squizlabs/php_codesniffer" : " ^3.7" ,
40
- "captainhook/captainhook" : " ^5.16"
39
+ "captainhook/captainhook" : " ^5.16" ,
40
+ "phpcsstandards/php_codesniffer" : " ^3.7"
41
+ },
42
+ "scripts" : {
43
+ "check-static" : " phpstan" ,
44
+ "format" : " phpcbf --standard=PSR12 src" ,
45
+ "post-autoload-dump" : [
46
+ " vendor/bin/captainhook install -f -s"
47
+ ]
41
48
}
42
49
}
You can’t perform that action at this time.
0 commit comments