File tree 3 files changed +29
-21
lines changed
3 files changed +29
-21
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ jobs:
34
34
--coverage-clover ./coverage.xml
35
35
- name : Annotate with Metrics
36
36
run : |
37
- find src -name "*.php" | xargs ./vendor/bin/metrics annotate ./coverage.xml
37
+ find src -name "*.php" | xargs -n 1 ./vendor/bin/metrics annotate ./coverage.xml
38
38
- name : Refactor with Rector
39
39
run : |
40
40
./vendor/bin/rector process src
41
41
- name : Tidy Source Code
42
42
run : |
43
- find tests -name "*.php" | xargs ./vendor/bin/phptidy.php replace
44
- find src -name "*.php" | xargs ./vendor/bin/phptidy.php replace
43
+ find tests -name "*.php" | xargs -n 1 ./vendor/bin/phptidy.php replace
44
+ find src -name "*.php" | xargs -n 1 ./vendor/bin/phptidy.php replace
45
45
- name : Push Back Changes
46
46
run : |
47
47
git diff --exit-code src || ( \
Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/silverstripe/cms/tests/bootstrap.php" colors =" true" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
3
- <coverage includeUncoveredFiles =" true" >
4
- <include >
5
- <directory suffix =" .php" >src/</directory >
6
- </include >
7
- <exclude >
8
- <directory suffix =" .php" >tests/</directory >
9
- </exclude >
10
- <report >
11
- <clover outputFile =" clover.xml" />
12
- </report >
13
- </coverage >
14
- <testsuite name =" Default" >
15
- <directory >tests/</directory >
16
- </testsuite >
17
- <logging />
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
4
+ bootstrap =" vendor/autoload.php"
5
+ executionOrder =" depends,defects"
6
+ forceCoversAnnotation =" false"
7
+ beStrictAboutCoversAnnotation =" true"
8
+ beStrictAboutOutputDuringTests =" true"
9
+ beStrictAboutTodoAnnotatedTests =" true"
10
+ failOnRisky =" true"
11
+ failOnWarning =" true"
12
+ verbose =" true" >
13
+ <testsuites >
14
+ <testsuite name =" default" >
15
+ <directory >tests</directory >
16
+ </testsuite >
17
+ </testsuites >
18
+
19
+ <coverage processUncoveredFiles =" true" >
20
+ <include >
21
+ <directory suffix =" .php" >src</directory >
22
+ </include >
23
+ <exclude >
24
+ <file >src/bootstrap.php</file >
25
+ </exclude >
26
+ </coverage >
18
27
<php >
19
28
<includePath >app/code</includePath >
20
29
<env name =" SS_DATABASE_CLASS" value =" SQLite3Database" />
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ class UserFormWidget extends Widget
34
34
35
35
/**
36
36
*
37
- * @Metrics( crap = 1 )
38
37
* @return unknown
39
38
*/
40
39
You can’t perform that action at this time.
0 commit comments