comparison vendor/squizlabs/php_codesniffer/phpcs.xsd @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
1 <?xml version="1.0" encoding="utf-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
3
4 <xs:element name="ruleset">
5 <xs:complexType>
6 <xs:choice minOccurs="0" maxOccurs="unbounded">
7 <xs:element name="description" type="xs:string" maxOccurs="1" minOccurs="0"></xs:element>
8 <xs:element name="config" maxOccurs="unbounded" minOccurs="0">
9 <xs:complexType>
10 <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
11 <xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
12 </xs:complexType>
13 </xs:element>
14 <xs:element name="file" type="xs:string" maxOccurs="unbounded" minOccurs="0"></xs:element>
15 <xs:element name="exclude-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element>
16 <xs:element name="arg" maxOccurs="unbounded" minOccurs="0">
17 <xs:complexType>
18 <xs:attribute name="name" type="xs:string"></xs:attribute>
19 <xs:attribute name="value" type="xs:string"></xs:attribute>
20 </xs:complexType>
21 </xs:element>
22 <xs:element name="ini" maxOccurs="unbounded" minOccurs="0">
23 <xs:complexType>
24 <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
25 <xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
26 </xs:complexType>
27 </xs:element>
28 <xs:element name="autoload" type="xs:string" maxOccurs="unbounded" minOccurs="0"></xs:element>
29 <xs:element name="rule" type="ruleType" maxOccurs="unbounded" minOccurs="0"></xs:element>
30 </xs:choice>
31 <xs:attribute name="name" type="xs:string"></xs:attribute>
32 <xs:attribute name="namespace" type="xs:string"></xs:attribute>
33 </xs:complexType>
34 </xs:element>
35
36 <xs:complexType name="ruleType">
37 <xs:choice minOccurs="0" maxOccurs="unbounded">
38 <xs:element name="exclude" maxOccurs="unbounded" minOccurs="0">
39 <xs:complexType>
40 <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
41 </xs:complexType>
42 </xs:element>
43 <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>
45 <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>
52 </xs:element>
53 <xs:element name="exclude-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element>
54 <xs:element name="include-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element>
55 <xs:element name="properties" type="propertiesType" maxOccurs="1" minOccurs="0"></xs:element>
56 </xs:choice>
57 <xs:attribute name="ref" type="xs:string" use="required"></xs:attribute>
58 </xs:complexType>
59
60 <xs:complexType name="patternType">
61 <xs:simpleContent>
62 <xs:extension base="xs:string">
63 <xs:attribute name="type">
64 <xs:simpleType>
65 <xs:restriction base="xs:string">
66 <xs:enumeration value="relative"></xs:enumeration>
67 </xs:restriction>
68 </xs:simpleType>
69 </xs:attribute>
70 </xs:extension>
71 </xs:simpleContent>
72 </xs:complexType>
73
74 <xs:complexType name="propertiesType">
75 <xs:sequence>
76 <xs:element name="property" maxOccurs="unbounded" minOccurs="1">
77 <xs:complexType>
78 <xs:sequence>
79 <xs:element name="element" maxOccurs="unbounded" minOccurs="0">
80 <xs:complexType>
81 <xs:attribute name="key" type="xs:string"></xs:attribute>
82 <xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
83 </xs:complexType>
84 </xs:element>
85 </xs:sequence>
86 <xs:attribute name="type">
87 <xs:simpleType>
88 <xs:restriction base="xs:string">
89 <xs:enumeration value="array"></xs:enumeration>
90 </xs:restriction>
91 </xs:simpleType>
92 </xs:attribute>
93 <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
94 <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>
103 </xs:complexType>
104 </xs:element>
105 </xs:sequence>
106 </xs:complexType>
107
108 </xs:schema>