-
Notifications
You must be signed in to change notification settings - Fork 15
/
ruleset_2_0_0.xsd
65 lines (59 loc) · 3.12 KB
/
ruleset_2_0_0.xsd
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
<?xml version="1.0"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
targetNamespace="http://pmd.sourceforge.net/ruleset/2.0.0"
elementFormDefault="qualified">
<xs:element name="ruleset">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="exclude-pattern" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="include-pattern" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="rule" type="rule" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:complexType name="rule">
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="priority" type="xs:int" default="5" minOccurs="0" maxOccurs="1"/>
<xs:element name="properties" type="properties" minOccurs="0" maxOccurs="1" />
<xs:element name="exclude" type="exclude" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="example" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="language" type="xs:string" use="optional" />
<xs:attribute name="minimumLanguageVersion" type="xs:string" use="optional" />
<xs:attribute name="maximumLanguageVersion" type="xs:string" use="optional" />
<xs:attribute name="name" type="xs:ID" use="optional" />
<xs:attribute name="since" type="xs:string" use="optional" />
<xs:attribute name="ref" type="xs:string" use="optional" />
<xs:attribute name="message" type="xs:string" use="optional" />
<xs:attribute name="externalInfoUrl" type="xs:string" use="optional" />
<xs:attribute name="class" type="xs:NMTOKEN" use="optional" />
<xs:attribute name="dfa" type="xs:boolean" use="optional" /> <!-- rule uses dataflow analysis -->
<xs:attribute name="typeResolution" type="xs:boolean" default="false" use="optional" />
<xs:attribute name="deprecated" type="xs:boolean" default="false" use="optional" />
</xs:complexType>
<xs:complexType name="properties">
<xs:sequence>
<xs:element name="property" type="property" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="property">
<xs:sequence>
<xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
<xs:attribute name="value" type="xs:string" use="optional" />
<xs:attribute name="description" type="xs:string" use="optional" />
<xs:attribute name="type" type="xs:string" use="optional" />
<xs:attribute name="delimiter" type="xs:string" use="optional" />
<xs:attribute name="min" type="xs:string" use="optional" />
<xs:attribute name="max" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="exclude">
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
</xs:complexType>
</xs:schema>