forked from squizlabs/PHP_CodeSniffer
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xsd
More file actions
Latest commit
136 lines (130 loc) · 6.89 KB
/
Copy pathphpcs.xsd
File metadata and controls
136 lines (130 loc) · 6.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?xml version="1.0" encoding="utf-8"?>
<xs:schemaxmlns:xs="http://www.w3.org/2001/XMLSchema"attributeFormDefault="unqualified"elementFormDefault="qualified">
<xs:elementname="ruleset">
<xs:complexType>
<xs:choiceminOccurs="0"maxOccurs="unbounded">
<xs:elementname="description"type="xs:string"maxOccurs="1"minOccurs="0"></xs:element>
<xs:elementname="config"maxOccurs="unbounded"minOccurs="0">
<xs:complexType>
<xs:attributename="name"type="xs:string"use="required"></xs:attribute>
<xs:attributename="value"type="xs:string"use="required"></xs:attribute>
<xs:attributeGroupref="applySelectively"/>
</xs:complexType>
</xs:element>
<xs:elementname="file"maxOccurs="unbounded"minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extensionbase="xs:string">
<xs:attributeGroupref="applySelectively"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:elementname="exclude-pattern"type="patternType"maxOccurs="unbounded"minOccurs="0"></xs:element>
<xs:elementname="arg"maxOccurs="unbounded"minOccurs="0">
<xs:complexType>
<xs:attributename="name"type="xs:string"></xs:attribute>
<xs:attributename="value"type="xs:string"></xs:attribute>
<xs:attributeGroupref="applySelectively"/>
</xs:complexType>
</xs:element>
<xs:elementname="ini"maxOccurs="unbounded"minOccurs="0">
<xs:complexType>
<xs:attributename="name"type="xs:string"use="required"></xs:attribute>
<xs:attributename="value"type="xs:string"use="required"></xs:attribute>
<xs:attributeGroupref="applySelectively"/>
</xs:complexType>
</xs:element>
<xs:elementname="autoload"type="xs:string"maxOccurs="unbounded"minOccurs="0"></xs:element>
<xs:elementname="rule"type="ruleType"maxOccurs="unbounded"minOccurs="0"></xs:element>
</xs:choice>
<xs:attributename="name"type="xs:string"></xs:attribute>
<xs:attributename="namespace"type="xs:string"></xs:attribute>
</xs:complexType>
</xs:element>
<xs:complexTypename="ruleType">
<xs:choiceminOccurs="0"maxOccurs="unbounded">
<xs:elementname="exclude"maxOccurs="unbounded"minOccurs="0">
<xs:complexType>
<xs:attributename="name"type="xs:string"use="required"></xs:attribute>
<xs:attributeGroupref="applySelectively"/>
</xs:complexType>
</xs:element>
<xs:elementname="message"type="xs:string"maxOccurs="1"minOccurs="0"></xs:element>
<xs:elementname="severity"maxOccurs="1"minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extensionbase="xs:integer">
<xs:attributeGroupref="applySelectively"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:elementname="type"maxOccurs="1"minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extensionbase="messageType">
<xs:attributeGroupref="applySelectively"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:elementname="exclude-pattern"type="patternType"maxOccurs="unbounded"minOccurs="0"></xs:element>
<xs:elementname="include-pattern"type="patternType"maxOccurs="unbounded"minOccurs="0"></xs:element>
<xs:elementname="properties"type="propertiesType"maxOccurs="1"minOccurs="0"></xs:element>
</xs:choice>
<xs:attributename="ref"type="xs:string"use="required"></xs:attribute>
<xs:attributeGroupref="applySelectively"/>
</xs:complexType>
<xs:complexTypename="patternType">
<xs:simpleContent>
<xs:extensionbase="xs:string">
<xs:attributename="type">
<xs:simpleType>
<xs:restrictionbase="xs:string">
<xs:enumerationvalue="relative"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attributeGroupref="applySelectively"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexTypename="propertiesType">
<xs:sequence>
<xs:elementname="property"maxOccurs="unbounded"minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:elementname="element"maxOccurs="unbounded"minOccurs="0">
<xs:complexType>
<xs:attributename="key"type="xs:string"></xs:attribute>
<xs:attributename="value"type="xs:string"use="required"></xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributename="type">
<xs:simpleType>
<xs:restrictionbase="xs:string">
<xs:enumerationvalue="array"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attributename="name"type="xs:string"use="required"></xs:attribute>
<xs:attributename="value"type="xs:string"></xs:attribute>
<xs:attributename="extend"type="xs:boolean"default="false"/>
<xs:attributeGroupref="applySelectively"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleTypename="messageType">
<xs:restrictionbase="xs:string">
<xs:enumerationvalue="error"></xs:enumeration>
<xs:enumerationvalue="warning"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:attributeGroupname="applySelectively">
<xs:attributename="phpcs-only"type="xs:boolean"default="false"/>
<xs:attributename="phpcbf-only"type="xs:boolean"default="false"/>
</xs:attributeGroup>
</xs:schema>