checkstyle.xsd 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 2016 LinkedIn Corp.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  15. <xs:element name="checkstyle" type="checkstyleType"/>
  16. <xs:complexType name="fileType">
  17. <xs:sequence>
  18. <xs:element type="errorType" name="error" maxOccurs="unbounded" minOccurs="0"/>
  19. </xs:sequence>
  20. <xs:attribute type="xs:string" name="name" use="optional"/>
  21. </xs:complexType>
  22. <xs:complexType name="errorType">
  23. <xs:simpleContent>
  24. <xs:extension base="xs:string">
  25. <xs:attribute type="xs:string" name="line" use="optional"/>
  26. <xs:attribute type="xs:string" name="severity" use="optional"/>
  27. <xs:attribute type="xs:string" name="message" use="optional"/>
  28. <xs:attribute type="xs:string" name="source" use="optional"/>
  29. <xs:attribute type="xs:string" name="column" use="optional"/>
  30. </xs:extension>
  31. </xs:simpleContent>
  32. </xs:complexType>
  33. <xs:complexType name="checkstyleType">
  34. <xs:sequence>
  35. <xs:element type="fileType" name="file" maxOccurs="unbounded" minOccurs="0"/>
  36. </xs:sequence>
  37. <xs:attribute type="xs:string" name="version"/>
  38. </xs:complexType>
  39. </xs:schema>