forked from phoedos/pmd
Applied Vadim's XML escape patch
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2245 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
</subsection>
|
||||
<subsection name="Contributors">
|
||||
<ul>
|
||||
<li>Vadim Nasardinov - run.sh cleanup</li>
|
||||
<li>Vadim Nasardinov - xdocs cleanup, run.sh cleanup</li>
|
||||
<li>Sreenivasa Viswanadha - grammar cleanup for Ctrl-Z problem</li>
|
||||
<li>Sigiswald Madou - bug report</li>
|
||||
<li>Dan Tullis - bug report</li>
|
||||
|
@ -190,31 +190,28 @@ public class WhileLoopsMustUseBracesRule extends AbstractRule {
|
||||
</ul>
|
||||
<p>The whole ruleset file should look something like this:</p>
|
||||
<source>
|
||||
<![CDATA[
|
||||
<?xml version="1.0"?>
|
||||
<rule name="WhileLoopsMustUseBracesRule"
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<rule name="WhileLoopsMustUseBracesRule"
|
||||
message="Avoid using 'while' statements without curly braces"
|
||||
class="net.sourceforge.pmd.rules.XPathRule">
|
||||
<description>
|
||||
<description>
|
||||
Avoid using 'while' statements without using curly braces
|
||||
</description>
|
||||
<priority>3</priority>
|
||||
|
||||
<example>
|
||||
</description>
|
||||
<priority>3</priority>
|
||||
|
||||
<example>
|
||||
<![CDATA[
|
||||
public void doSomething() {
|
||||
while (true)
|
||||
x++;
|
||||
}
|
||||
]]>
|
||||
</example>
|
||||
</rule>
|
||||
</ruleset>
|
||||
|
||||
</example>
|
||||
</rule>
|
||||
</ruleset>
|
||||
]]>
|
||||
</source>
|
||||
<p>OK, well, it won't look exactly like that - you'll need to wrap
|
||||
the example in a CDATA tag. But I couldn't figure out how to do that without Maven getting confused.
|
||||
If you know how to do this, please let me know.</p>
|
||||
</subsection>
|
||||
|
||||
<subsection name="Run PMD using your new ruleset">
|
||||
|
Reference in New Issue
Block a user