Added global-property to DTD.
Removed DTD from XML file until fix of ConfigurationLoader
This commit is contained in:
parent
6f4247181b
commit
4a638fc0e6
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue