File tree Expand file tree Collapse file tree 6 files changed +66
-6
lines changed
src/PatchlevelCodingStandard Expand file tree Collapse file tree 6 files changed +66
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
+
3
+ name : " Check Coding Standard"
4
+
5
+ on :
6
+ pull_request :
7
+ push :
8
+ branches :
9
+ - " [0-9]+.[0-9]+.x"
10
+ - " renovate/*"
11
+
12
+ jobs :
13
+ static-analysis-coding-standard :
14
+ name : " Static Analysis by patchlevel/coding-standard"
15
+
16
+ runs-on : ${{ matrix.operating-system }}
17
+
18
+ strategy :
19
+ matrix :
20
+ dependencies :
21
+ - " locked"
22
+ php-version :
23
+ - " 8.1"
24
+ operating-system :
25
+ - " ubuntu-latest"
26
+
27
+ steps :
28
+ - name : " Checkout"
29
+ uses : " actions/checkout@v2"
30
+
31
+ - name : " Install PHP"
32
+ uses : " shivammathur/setup-php@v2"
33
+ with :
34
+ coverage : " pcov"
35
+ php-version : " ${{ matrix.php-version }}"
36
+ ini-values : memory_limit=-1
37
+ extensions : pdo_sqlite
38
+
39
+ - uses : " ramsey/composer-install@v2"
40
+ with :
41
+ dependency-versions : ${{ matrix.dependencies }}
42
+
43
+ - name : " Coding Standard"
44
+ run : " vendor/bin/phpcs tests/fixed"
Original file line number Diff line number Diff line change 28
28
],
29
29
"require" : {
30
30
"php" : " ^7.4 || ^8.0" ,
31
- "dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.1 " ,
32
- "slevomat/coding-standard" : " ^7.0.10 " ,
33
- "squizlabs/php_codesniffer" : " ^3.6.0 "
31
+ "dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.2 " ,
32
+ "slevomat/coding-standard" : " ^8.1.0 " ,
33
+ "squizlabs/php_codesniffer" : " ^3.7.1 "
34
34
},
35
35
"config" : {
36
- "sort-packages" : true
36
+ "sort-packages" : true ,
37
+ "allow-plugins" : {
38
+ "dealerdirect/phpcodesniffer-composer-installer" : true
39
+ }
37
40
}
38
41
}
Original file line number Diff line number Diff line change 14
14
<arg value =" p" />
15
15
<file >src</file >
16
16
17
- <rule ref =" Patchlevel " />
17
+ <rule ref =" PatchlevelCodingStandard " />
18
18
</ruleset >
Original file line number Diff line number Diff line change 396
396
</property >
397
397
</properties >
398
398
</rule >
399
- <rule ref =" SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing " />
399
+ <rule ref =" SlevomatCodingStandard.Classes.PropertyDeclaration " />
400
400
<rule ref =" SlevomatCodingStandard.TypeHints.ReturnTypeHint" >
401
401
<properties >
402
402
<property name =" traversableTypeHints" type =" array" >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Tests \Fixed ;
6
+
7
+ enum Suit: string
8
+ {
9
+ case Hearts = 'H ' ;
10
+ case Diamonds = 'D ' ;
11
+ case Clubs = 'C ' ;
12
+ case Spades = 'S ' ;
13
+ }
You can’t perform that action at this time.
0 commit comments