fix #1666 wrong cdata rule description and examples
This commit is contained in:
@ -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 <!CDATA[ marker, which has only one [, and ends with a ]]> marker, which has only two ].
|
||||
An XML CDATA section begins with a <![CDATA[ marker, which has only one [, and ends with a ]]> marker, which has two ].
|
||||
</description>
|
||||
<priority>3</priority>
|
||||
<properties>
|
||||
@ -30,7 +30,7 @@ An XML CDATA section begins with a <!CDATA[ marker, which has only one [, and
|
||||
</properties>
|
||||
<example>
|
||||
<![CDATA[
|
||||
An extra [ looks like <!CDATA[[]]>, and an extra ] looks like <!CDATA[]]]>.
|
||||
An extra [ looks like <![CDATA[[]]>, and an extra ] looks like <![CDATA[]]]>.
|
||||
]]>
|
||||
</example>
|
||||
</rule>
|
||||
|
Reference in New Issue
Block a user