fix #1666 wrong cdata rule description and examples

This commit is contained in:
artem.krosheninnikov
2019-06-14 18:03:51 +03:00
parent e17ad14944
commit 4f58cc695c

View File

@ -12,11 +12,11 @@ Rules to detect constructs that are either broken, extremely confusing or prone
<rule name="MistypedCDATASection"
language="xml"
since="5.0"
message="Potentialy mistyped CDATA section with extra [ at beginning or ] at the end."
message="Potentially mistyped CDATA section with extra [ at beginning or ] at the end."
class="net.sourceforge.pmd.lang.rule.XPathRule"
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_xml_errorprone.html#mistypedcdatasection">
<description>
An XML CDATA section begins with a &lt;!CDATA[ marker, which has only one [, and ends with a ]]&gt; marker, which has only two ].
An XML CDATA section begins with a &lt;![CDATA[ marker, which has only one [, and ends with a ]]&gt; marker, which has two ].
</description>
<priority>3</priority>
<properties>
@ -30,7 +30,7 @@ An XML CDATA section begins with a &lt;!CDATA[ marker, which has only one [, and
</properties>
<example>
<![CDATA[
An extra [ looks like &lt;!CDATA[[]]&gt;, and an extra ] looks like &lt;!CDATA[]]]&gt;.
An extra [ looks like &lt;![CDATA[[]]&gt;, and an extra ] looks like &lt;![CDATA[]]]&gt;.
]]>
</example>
</rule>