File tree 4 files changed +13
-7
lines changed
4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,15 @@ before_script:
23
23
- if [ "${DEPENDENCIES}" = "lowest" ]; then composer update --prefer-lowest --prefer-dist --no-interaction --no-progress; fi;
24
24
- if [ "${DEPENDENCIES}" = "highest" ]; then composer update --prefer-dist --no-interaction --no-progress; fi;
25
25
- if [ "${DEPENDENCIES}" = "highest" ]; then pecl install -f ast-1.0.7; fi; # Install AST extension, as phan uses it
26
+ - export XMLLINT_INDENT=" "
26
27
27
28
script :
28
- - xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd MO4/ruleset.xml # validate MO4's ruleset XML
29
+ - xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd MO4/ruleset.xml
30
+ - xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd phpcs.mo4.xml
31
+ - xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd phpcs.xml.dist
32
+ - diff -B MO4/ruleset.xml <(xmllint --format MO4/ruleset.xml)
33
+ - diff -B phpcs.mo4.xml <(xmllint --format phpcs.mo4.xml)
34
+ - diff -B phpcs.xml.dist <(xmllint --format phpcs.xml.dist)
29
35
- vendor/bin/phpcs -s --standard=MO4 integrationtests/testfile.php # Check, if all the sniffs work with the current dependencies
30
36
- vendor/bin/phpunit # Run tests
31
37
- vendor/bin/phpcs # Stylecheck against PHPCS's ruleset
Original file line number Diff line number Diff line change 80
80
<!-- Require presence of constant visibility -->
81
81
<rule ref =" SlevomatCodingStandard.Classes.ClassConstantVisibility" />
82
82
<!-- Forbid multi constant definition -->
83
- <rule ref =" SlevomatCodingStandard.Classes.DisallowMultiConstantDefinition" />
83
+ <rule ref =" SlevomatCodingStandard.Classes.DisallowMultiConstantDefinition" />
84
84
<!-- Forbid multi property definition -->
85
- <rule ref =" SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition" />
85
+ <rule ref =" SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition" />
86
86
<!-- Forbid empty lines after class/interface/trait opening and before closing braces -->
87
87
<rule ref =" SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces" >
88
88
<properties >
Original file line number Diff line number Diff line change 10
10
<exclude-pattern >vendor/*</exclude-pattern >
11
11
12
12
<arg name =" basepath" value =" ." />
13
- <arg name =" colors" />
14
- <arg name =" parallel" value =" 75" />
13
+ <arg name =" colors" />
14
+ <arg name =" parallel" value =" 75" />
15
15
<arg value =" np" />
16
16
</ruleset >
Original file line number Diff line number Diff line change 8
8
<!-- 1. CLI parameters -->
9
9
<!-- 2. followed by configuration settings imported from rulesets, first come, first serve -->
10
10
<!-- 3. and finally the configuration from this file itself! -->
11
- <rule ref =" phpcs.mo4.xml" />
11
+ <rule ref =" phpcs.mo4.xml" />
12
12
13
- <rule ref =" vendor/squizlabs/php_codesniffer/phpcs.xml.dist" />
13
+ <rule ref =" vendor/squizlabs/php_codesniffer/phpcs.xml.dist" />
14
14
</ruleset >
You can’t perform that action at this time.
0 commit comments