A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/2438 below:

[cpp] Repeated Duplication blocks · Issue #2438 · pmd/pmd · GitHub

When I ran a scan on Linux I received an XML file containing the same duplication block repeated multiple times

<?xml version="1.0" encoding="UTF-8"?>
<pmd-cpd>
   <duplication lines="5" tokens="128">
      <file column="24" endcolumn="31" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="32" endcolumn="31" endline="28" line="24"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="126">
      <file column="24" endcolumn="29" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="2" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="124">
      <file column="24" endcolumn="27" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="4" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="122">
      <file column="24" endcolumn="25" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="6" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="120">
      <file column="24" endcolumn="23" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="8" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="118">
      <file column="24" endcolumn="21" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="10" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="116">
      <file column="24" endcolumn="19" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="12" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="114">
      <file column="24" endcolumn="17" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="14" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="112">
      <file column="24" endcolumn="15" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="16" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="110">
      <file column="24" endcolumn="13" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="18" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="108">
      <file column="24" endcolumn="11" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="20" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="106">
      <file column="24" endcolumn="9" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="22" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="104">
      <file column="24" endcolumn="7" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="24" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="102">
      <file column="24" endcolumn="5" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="26" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
   <duplication lines="5" tokens="100">
      <file column="24" endcolumn="3" endline="24" line="20"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <file column="28" endcolumn="31" endline="28" line="25"
            path="/Users/chris/work/vaults/tvl2/projects/linux/systems/linux-0.01/code/linux/lib/ctype.c"/>
      <codefragment><![CDATA[_L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 160-175 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 176-191 */]]></codefragment>
   </duplication>
</pmd-cpd>

Please provide detailed steps for how we can reproduce the bug.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4