|
9 | 9 | <xs:complexType>
|
10 | 10 | <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
|
11 | 11 | <xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
|
| 12 | + <xs:attributeGroup ref="applySelectively"/> |
12 | 13 | </xs:complexType>
|
13 | 14 | </xs:element>
|
14 |
| - <xs:element name="file" type="xs:string" maxOccurs="unbounded" minOccurs="0"></xs:element> |
| 15 | + <xs:element name="file" maxOccurs="unbounded" minOccurs="0"> |
| 16 | + <xs:complexType> |
| 17 | + <xs:simpleContent> |
| 18 | + <xs:extension base="xs:string"> |
| 19 | + <xs:attributeGroup ref="applySelectively"/> |
| 20 | + </xs:extension> |
| 21 | + </xs:simpleContent> |
| 22 | + </xs:complexType> |
| 23 | + </xs:element> |
15 | 24 | <xs:element name="exclude-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element>
|
16 | 25 | <xs:element name="arg" maxOccurs="unbounded" minOccurs="0">
|
17 | 26 | <xs:complexType>
|
18 | 27 | <xs:attribute name="name" type="xs:string"></xs:attribute>
|
19 | 28 | <xs:attribute name="value" type="xs:string"></xs:attribute>
|
| 29 | + <xs:attributeGroup ref="applySelectively"/> |
20 | 30 | </xs:complexType>
|
21 | 31 | </xs:element>
|
22 | 32 | <xs:element name="ini" maxOccurs="unbounded" minOccurs="0">
|
23 | 33 | <xs:complexType>
|
24 | 34 | <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
|
25 | 35 | <xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
|
| 36 | + <xs:attributeGroup ref="applySelectively"/> |
26 | 37 | </xs:complexType>
|
27 | 38 | </xs:element>
|
28 | 39 | <xs:element name="autoload" type="xs:string" maxOccurs="unbounded" minOccurs="0"></xs:element>
|
|
38 | 49 | <xs:element name="exclude" maxOccurs="unbounded" minOccurs="0">
|
39 | 50 | <xs:complexType>
|
40 | 51 | <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
|
| 52 | + <xs:attributeGroup ref="applySelectively"/> |
41 | 53 | </xs:complexType>
|
42 | 54 | </xs:element>
|
43 | 55 | <xs:element name="message" type="xs:string" maxOccurs="1" minOccurs="0"></xs:element>
|
44 |
| - <xs:element name="severity" type="xs:integer" maxOccurs="1" minOccurs="0"></xs:element> |
| 56 | + <xs:element name="severity" maxOccurs="1" minOccurs="0"> |
| 57 | + <xs:complexType> |
| 58 | + <xs:simpleContent> |
| 59 | + <xs:extension base="xs:integer"> |
| 60 | + <xs:attributeGroup ref="applySelectively"/> |
| 61 | + </xs:extension> |
| 62 | + </xs:simpleContent> |
| 63 | + </xs:complexType> |
| 64 | + </xs:element> |
45 | 65 | <xs:element name="type" maxOccurs="1" minOccurs="0">
|
46 |
| - <xs:simpleType> |
47 |
| - <xs:restriction base="xs:string"> |
48 |
| - <xs:enumeration value="error"></xs:enumeration> |
49 |
| - <xs:enumeration value="warning"></xs:enumeration> |
50 |
| - </xs:restriction> |
51 |
| - </xs:simpleType> |
| 66 | + <xs:complexType> |
| 67 | + <xs:simpleContent> |
| 68 | + <xs:extension base="messageType"> |
| 69 | + <xs:attributeGroup ref="applySelectively"/> |
| 70 | + </xs:extension> |
| 71 | + </xs:simpleContent> |
| 72 | + </xs:complexType> |
52 | 73 | </xs:element>
|
53 | 74 | <xs:element name="exclude-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element>
|
54 | 75 | <xs:element name="include-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element>
|
55 | 76 | <xs:element name="properties" type="propertiesType" maxOccurs="1" minOccurs="0"></xs:element>
|
56 | 77 | </xs:choice>
|
57 | 78 | <xs:attribute name="ref" type="xs:string" use="required"></xs:attribute>
|
| 79 | + <xs:attributeGroup ref="applySelectively"/> |
58 | 80 | </xs:complexType>
|
59 | 81 |
|
60 | 82 | <xs:complexType name="patternType">
|
|
67 | 89 | </xs:restriction>
|
68 | 90 | </xs:simpleType>
|
69 | 91 | </xs:attribute>
|
| 92 | + <xs:attributeGroup ref="applySelectively"/> |
70 | 93 | </xs:extension>
|
71 | 94 | </xs:simpleContent>
|
72 | 95 | </xs:complexType>
|
|
92 | 115 | </xs:attribute>
|
93 | 116 | <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
|
94 | 117 | <xs:attribute name="value" type="xs:string"></xs:attribute>
|
95 |
| - <xs:attribute name="extend"> |
96 |
| - <xs:simpleType> |
97 |
| - <xs:restriction base="xs:string"> |
98 |
| - <xs:enumeration value="true"/> |
99 |
| - <xs:enumeration value="false"/> |
100 |
| - </xs:restriction> |
101 |
| - </xs:simpleType> |
102 |
| - </xs:attribute> |
| 118 | + <xs:attribute name="extend" type="xs:boolean" default="false"/> |
| 119 | + <xs:attributeGroup ref="applySelectively"/> |
103 | 120 | </xs:complexType>
|
104 | 121 | </xs:element>
|
105 | 122 | </xs:sequence>
|
106 | 123 | </xs:complexType>
|
107 | 124 |
|
| 125 | + <xs:simpleType name="messageType"> |
| 126 | + <xs:restriction base="xs:string"> |
| 127 | + <xs:enumeration value="error"></xs:enumeration> |
| 128 | + <xs:enumeration value="warning"></xs:enumeration> |
| 129 | + </xs:restriction> |
| 130 | + </xs:simpleType> |
| 131 | + |
| 132 | + <xs:attributeGroup name="applySelectively"> |
| 133 | + <xs:attribute name="phpcs-only" type="xs:boolean" default="false"/> |
| 134 | + <xs:attribute name="phpcbf-only" type="xs:boolean" default="false"/> |
| 135 | + </xs:attributeGroup> |
108 | 136 | </xs:schema>
|
0 commit comments