mirror of
https://github.com/github/codeql.git
synced 2025-12-25 13:16:33 +01:00
For those documents with no obvious new home I've pointed the links to the Internet Archive.
26 lines
1.0 KiB
XML
26 lines
1.0 KiB
XML
<!DOCTYPE qhelp PUBLIC
|
|
"-//Semmle//qhelp//EN"
|
|
"qhelp.dtd">
|
|
<qhelp>
|
|
<overview>
|
|
<p>This rule identifies two files that have a lot of the same lines but with different variable and
|
|
method names. This makes it difficult to make changes in future and makes the code less easy to read.
|
|
</p>
|
|
|
|
</overview>
|
|
<recommendation>
|
|
<p>It is important to determine why there are small differences in the files. Sometimes the files
|
|
might have been duplicates but an update was only applied to one copy. If this is the case it should
|
|
be simple to merge the files, preserving any changes.</p>
|
|
|
|
<p>If the files are intentionally different then it could be a good idea to consider extracting some
|
|
of the shared code into its own module and import that module into the original.</p>
|
|
|
|
</recommendation>
|
|
<references>
|
|
|
|
<li>E. Juergens, F. Deissenboeck, B. Hummel and S. Wagner, <em>Do Code Clones Matter?</em>, 2009. (<a href="https://wwwbroy.in.tum.de/~juergens/publications/ICSE2009_RP_0110_juergens.pdf">available online</a>).</li>
|
|
|
|
</references>
|
|
</qhelp>
|