added DTD for checkstyle configuration

This commit is contained in:
Rick Giles 2002-11-12 23:20:51 +00:00
parent 1b5aa2b6f2
commit 6f36f2811d
2 changed files with 25 additions and 11 deletions

View File

@ -1,4 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE configuration SYSTEM "configuration.dtd">
<configuration>
@ -40,22 +41,23 @@
<check classname="com.puppycrawl.tools.checkstyle.checks.NoWhitespaceAfterCheck"/>
<check classname="com.puppycrawl.tools.checkstyle.checks.NoWhitespaceBeforeCheck"/>
<!-- Dot operator -->
<check classname="com.puppycrawl.tools.checkstyle.checks.NoWhitespaceAfterCheck">
<tokens>
<!-- Dot operator -->
<check classname="com.puppycrawl.tools.checkstyle.checks.NoWhitespaceAfterCheck">
<tokens>
DOT
</tokens>
<set-property name="allowLineBreaks" value="true"/>
</check>
<check classname="com.puppycrawl.tools.checkstyle.checks.NoWhitespaceBeforeCheck">
<tokens>
</tokens>
<set-property name="allowLineBreaks" value="true"/>
</check>
<check classname="com.puppycrawl.tools.checkstyle.checks.NoWhitespaceBeforeCheck">
<tokens>
DOT
</tokens>
<set-property name="allowLineBreaks" value="true"/>
</check>
</tokens>
<set-property name="allowLineBreaks" value="true"/>
</check>
<check classname="com.puppycrawl.tools.checkstyle.checks.OperatorWrapCheck"/>
<check classname="com.puppycrawl.tools.checkstyle.checks.OperatorWrapCheck">
<tokens>

12
docs/configuration.dtd Normal file
View File

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