-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Automated release
committed
Jan 31, 2024
1 parent
776e58f
commit 5ee407d
Showing
4 changed files
with
138 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified"> | ||
|
||
<xs:element name="ruleset"> | ||
<xs:complexType> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element name="description" type="xs:string" maxOccurs="1" minOccurs="0"></xs:element> | ||
<xs:element name="config" maxOccurs="unbounded" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:attribute name="name" type="xs:string" use="required"></xs:attribute> | ||
<xs:attribute name="value" type="xs:string" use="required"></xs:attribute> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="file" maxOccurs="unbounded" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="exclude-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element> | ||
<xs:element name="arg" maxOccurs="unbounded" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:attribute name="name" type="xs:string"></xs:attribute> | ||
<xs:attribute name="value" type="xs:string"></xs:attribute> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="ini" maxOccurs="unbounded" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:attribute name="name" type="xs:string" use="required"></xs:attribute> | ||
<xs:attribute name="value" type="xs:string" use="required"></xs:attribute> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="autoload" type="xs:string" maxOccurs="unbounded" minOccurs="0"></xs:element> | ||
<xs:element name="rule" type="ruleType" maxOccurs="unbounded" minOccurs="0"></xs:element> | ||
</xs:choice> | ||
<xs:attribute name="name" type="xs:string"></xs:attribute> | ||
<xs:attribute name="namespace" type="xs:string"></xs:attribute> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:complexType name="ruleType"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element name="exclude" maxOccurs="unbounded" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:attribute name="name" type="xs:string" use="required"></xs:attribute> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="message" type="xs:string" maxOccurs="1" minOccurs="0"></xs:element> | ||
<xs:element name="severity" maxOccurs="1" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:integer"> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="type" maxOccurs="1" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:simpleContent> | ||
<xs:extension base="messageType"> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="exclude-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element> | ||
<xs:element name="include-pattern" type="patternType" maxOccurs="unbounded" minOccurs="0"></xs:element> | ||
<xs:element name="properties" type="propertiesType" maxOccurs="1" minOccurs="0"></xs:element> | ||
</xs:choice> | ||
<xs:attribute name="ref" type="xs:string" use="required"></xs:attribute> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="patternType"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute name="type"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="relative"></xs:enumeration> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="propertiesType"> | ||
<xs:sequence> | ||
<xs:element name="property" maxOccurs="unbounded" minOccurs="1"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="element" maxOccurs="unbounded" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:attribute name="key" type="xs:string"></xs:attribute> | ||
<xs:attribute name="value" type="xs:string" use="required"></xs:attribute> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:sequence> | ||
<xs:attribute name="type"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="array"></xs:enumeration> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attribute name="name" type="xs:string" use="required"></xs:attribute> | ||
<xs:attribute name="value" type="xs:string"></xs:attribute> | ||
<xs:attribute name="extend" type="xs:boolean" default="false"/> | ||
<xs:attributeGroup ref="applySelectively"/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
|
||
<xs:simpleType name="messageType"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="error"></xs:enumeration> | ||
<xs:enumeration value="warning"></xs:enumeration> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
<xs:attributeGroup name="applySelectively"> | ||
<xs:attribute name="phpcs-only" type="xs:boolean" default="false"/> | ||
<xs:attribute name="phpcbf-only" type="xs:boolean" default="false"/> | ||
</xs:attributeGroup> | ||
</xs:schema> |