File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ script:
65
65
# Validate the xml ruleset files.
66
66
# @link http://xmlsoft.org/xmllint.html
67
67
- if [[ $XMLLINT == "1" ]]; then xmllint --noout --schema phpcs.xsd ./src/Standards/*/ruleset.xml; fi
68
+ - if [[ $XMLLINT == "1" ]]; then curl -O https://www.w3.org/2012/04/XMLSchema.xsd; fi
69
+ - if [[ $XMLLINT == "1" ]]; then xmllint --noout --schema ./XMLSchema.xsd ./phpcs.xsd; fi
68
70
# Check the code-style consistency of the xml files.
69
71
- if [[ $XMLLINT == "1" ]]; then diff -B ./phpcs.xml.dist <(xmllint --format "./phpcs.xml.dist"); fi
70
72
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Generic/ruleset.xml <(xmllint --format "./src/Standards/Generic/ruleset.xml"); fi
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
41
41
-- You still need to give PHPCS a list of files or directories in which to apply the filter
42
42
-- Thanks to Juliette Reinders Folmer for the contribution
43
43
- JSON reports now end with a newline character
44
+ - The phpcs.xsd schema now validates phpcs-only and phpcbf-only attributes correctly
45
+ -- Thanks to Juliette Reinders Folmer for the patch
44
46
- The T_LIST token and it's opening and closing parentheses now contain references to each other in the tokens array
45
47
-- Uses the same parenthesis_opener/closer/owner indexes as other tokens
46
48
-- Thanks to Juliette Reinders Folmer for the patch
Original file line number Diff line number Diff line change 20
20
</xs : extension >
21
21
</xs : simpleContent >
22
22
</xs : complexType >
23
- </xs : element >
23
+ </xs : element >
24
24
<xs : element name =" exclude-pattern" type =" patternType" maxOccurs =" unbounded" minOccurs =" 0" ></xs : element >
25
25
<xs : element name =" arg" maxOccurs =" unbounded" minOccurs =" 0" >
26
26
<xs : complexType >
61
61
</xs : extension >
62
62
</xs : simpleContent >
63
63
</xs : complexType >
64
- </xs : element >
64
+ </xs : element >
65
65
<xs : element name =" type" maxOccurs =" 1" minOccurs =" 0" >
66
66
<xs : complexType >
67
67
<xs : simpleContent >
You can’t perform that action at this time.
0 commit comments