Added global-property to DTD.

Removed DTD from XML file until fix of ConfigurationLoader
This commit is contained in:
Rick Giles 2002-11-14 10:10:27 +00:00
parent 6f4247181b
commit 4a638fc0e6
3 changed files with 11 additions and 3 deletions

View File

@ -639,7 +639,8 @@
<target name="validate.xml"
depends="require.xerces"
description="Validates checkstyle XML file">
<xmlvalidate file="docs/checkstyle_checks.xml"/>
<xmlvalidate file="docs/checkstyle_checks.xml">
</xmlvalidate>
</target>
</project>

View File

@ -1,8 +1,11 @@
<?xml version="1.0"?>
<!-- TODO: fix the loader to not validate the file
<!DOCTYPE configuration SYSTEM "configuration.dtd">
-->
<configuration>
<global-property name="tabWidth" value="4"/>
<check classname="com.puppycrawl.tools.checkstyle.checks.AvoidStarImport"/>
<check classname="com.puppycrawl.tools.checkstyle.checks.ConstantNameCheck"/>

View File

@ -1,11 +1,15 @@
<!--
DTD for a checkstyle configuration.
-->
<!ELEMENT configuration (check*)>
<!ELEMENT configuration (global-property*, check*)>
<!ELEMENT global-property EMPTY>
<!ELEMENT check (tokens?, set-property?)>
<!ELEMENT tokens (#PCDATA)>
<!ELEMENT set-property EMPTY>
<!ATTLIST global-property name CDATA #REQUIRED
value CDATA #REQUIRED
>
<!ATTLIST check classname CDATA #REQUIRED>
<!ATTLIST set-property name CDATA #REQUIRED
value CDATA #REQUIRED