GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — pmd/pmd-xml/src/main/resources/category/xml/errorprone.xml at main · pmd/pmd Expand file tree/ Copy patherrorprone.xmlMore file actions 49 lines (45 loc) · 1.82 KB / Copy patherrorprone.xmlFile metadata and controls49 lines (45 loc) · 1.82 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 <?xml version="1.0" encoding="UTF-8"?> <ruleset name="Error Prone" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> <description> Rules to detect constructs that are either broken, extremely confusing or prone to runtime errors. </description> <rule name="MistypedCDATASection" language="xml" since="5.0" message="Potentially mistyped CDATA section with extra [ at beginning or ] at the end." class="net.sourceforge.pmd.lang.rule.xpath.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 two ]. </description> <priority>3</priority> <properties> <property name="xpath"> <value> <![CDATA[ //cdata-section[starts-with(@Text,'[') or ends-with(@Text,']')] ]]> </value> </property> </properties> <example> <![CDATA[ <root> <child> <![CDATA[[ character data ]]><![CDATA[]]]]><![CDATA[> - this cdata section is valid, but it contains an additional square bracket at the beginning. It should probably be just <![CDATA[ character data ]]><![CDATA[]]]]><![CDATA[>. </child> <child> <![CDATA[ character data ]]]><![CDATA[]]]]><![CDATA[> - this cdata section is valid, but it contains an additional square bracket in the end. It should probably be just <![CDATA[ character data ]]><![CDATA[]]]]><![CDATA[>. </child> </root> ]]> </example> </rule> </ruleset> |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |