File tree Expand file tree Collapse file tree 4 files changed +42
-5
lines changed Expand file tree Collapse file tree 4 files changed +42
-5
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ composer.phar
3
3
composer.lock
4
4
.DS_Store
5
5
.idea /
6
+ /tests /log /
7
+ * .cache
Original file line number Diff line number Diff line change 12
12
"php" : " ^7.2"
13
13
},
14
14
"require-dev" : {
15
- "phpunit/phpunit" : " ^8.3 " ,
15
+ "phpunit/phpunit" : " ^8.4 " ,
16
16
"orchestra/testbench" : " ^4.0" ,
17
- "symplify/changelog-linker" : " ^6.1"
17
+ "symplify/changelog-linker" : " ^6.1" ,
18
+ "php-coveralls/php-coveralls" : " ^2.2" ,
19
+ "squizlabs/php_codesniffer" : " *" ,
20
+ "phpstan/phpstan" : " ^0.12.5"
18
21
},
19
22
"autoload" : {
20
23
"psr-4" : {
32
35
" geekcom\\ ValidatorDocs\\ ValidatorProvider"
33
36
]
34
37
}
38
+ },
39
+ "scripts" : {
40
+ "phpcs" : " phpcs --standard=PSR12 -n src" ,
41
+ "phpcbf" : " phpcbf --standard=PSR12 -n src" ,
42
+ "unit" : " phpunit --coverage-clover ./tests/log/clover.xml --colors=always" ,
43
+ "unit-html" : " php -d phar.readonly=0 vendor/bin/phpunit --coverage-html ./tests/log/ --colors=always" ,
44
+ "phpstan" : " phpstan analyse src --level 8" ,
45
+ "test" : [
46
+ " @phpcs" ,
47
+ " @unit" ,
48
+ " @phpstan"
49
+ ]
35
50
}
36
51
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<ruleset >
3
- <file >./</file >
4
- <exclude-pattern >./vendor/*</exclude-pattern >
5
- <rule ref =" PSR1" />
3
+ <arg name =" basepath" value =" ." />
4
+ <arg name =" extensions" value =" php" />
5
+ <arg name =" parallel" value =" 80" />
6
+ <arg name =" cache" value =" .phpcs-cache" />
7
+ <arg name =" colors" />
8
+
9
+ <arg value =" p" />
10
+
11
+ <exclude-pattern type =" relative" >^/tests/*</exclude-pattern >
12
+
13
+ <file >src</file >
14
+
15
+ <rule ref =" PSR12" />
6
16
</ruleset >
Original file line number Diff line number Diff line change 13
13
<directory suffix =" .php" >./tests/</directory >
14
14
</testsuite >
15
15
</testsuites >
16
+ <filter >
17
+ <whitelist processUncoveredFilesFromWhitelist =" true" >
18
+ <directory >./src/</directory >
19
+ </whitelist >
20
+ </filter >
21
+ <logging >
22
+ <log type =" coverage-html" target =" ./tests/log/report"
23
+ lowUpperBound =" 35" highLowerBound =" 70" />
24
+ <log type =" coverage-clover" target =" ./tests/log/clover.xml" />
25
+ </logging >
16
26
</phpunit >
You can’t perform that action at this time.
0 commit comments