File tree Expand file tree Collapse file tree 5 files changed +33
-5
lines changed Expand file tree Collapse file tree 5 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 21
21
22
22
- run : composer update --no-progress
23
23
24
- - run : vendor/bin/phpcs --standard=psr2 - q --report=checkstyle src | cs2pr
24
+ - run : vendor/bin/phpcs -q --report=checkstyle src | cs2pr
25
25
26
26
phpunit :
27
27
name : PHPUnit on ${{ matrix.php }} ${{ matrix.composer-flags }}
80
80
81
81
- run : composer update --no-progress
82
82
83
- - run : vendor/bin/phpstan analyse -l 3 src - -no-progress
83
+ - run : vendor/bin/phpstan analyse --no-progress
Original file line number Diff line number Diff line change 1
1
.idea
2
+ .phpunit.result.cache
2
3
build
3
4
composer.lock
5
+ phpcs.xml
6
+ phpunit.xml
4
7
vendor
Original file line number Diff line number Diff line change 47
47
},
48
48
"bin" : [" bin/json5" ],
49
49
"scripts" : {
50
- "test" : " simple-phpunit" ,
51
- "check-style" : " phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src test" ,
52
- "fix-style" : " phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src test"
50
+ "test" : [
51
+ " @phpunit" ,
52
+ " @check-style" ,
53
+ " @phpstan"
54
+ ],
55
+ "phpunit" : " simple-phpunit" ,
56
+ "phpstan" : " phpstan analyse" ,
57
+ "check-style" : " phpcs" ,
58
+ "fix-style" : " phpcbf"
53
59
},
54
60
"extra" : {
55
61
"branch-alias" : {
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset >
3
+ <arg name =" basepath" value =" ." />
4
+ <arg name =" extensions" value =" php" />
5
+ <arg name =" colors" />
6
+
7
+ <!-- Ignore warnings, show progress of the run and show sniff names -->
8
+ <arg value =" nps" />
9
+
10
+ <!-- Directories to be checked -->
11
+ <file >src</file >
12
+ <file >test</file >
13
+
14
+ <rule ref =" PSR2" />
15
+ </ruleset >
Original file line number Diff line number Diff line change
1
+ parameters:
2
+ level: 3
3
+ paths:
4
+ - src
You can’t perform that action at this time.
0 commit comments