hhvm / packaging
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 7% duplication:
    • 2,092 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 149 duplicated lines
  • 16 duplicates
system7% (149 lines)
Duplication per Extension
py11% (149 lines)
Duplication per Component (primary)
hhvm1/lambdas11% (149 lines)
lambdas/hhvm-invalidate-repository-metadata-on-cloudfront0% (0 lines)
lambdas/hhvm-get-build-status0% (0 lines)
lambdas/create-s3-index-html0% (0 lines)
ondemand0% (0 lines)
hhvm1/state-machine0% (0 lines)
hhvm10% (0 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
15 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
412:426 (1%)
437:451 (1%)
view
11 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
256:266 (1%)
276:286 (1%)
view
9 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
318:328 (1%)
332:342 (1%)
view
8 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
199:206 (<1%)
259:266 (<1%)
view
8 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
199:206 (<1%)
279:286 (<1%)
view
7 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
824:830 (<1%)
878:884 (<1%)
view
7 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
331:337 (<1%)
377:383 (<1%)
view
7 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
181:187 (<1%)
240:246 (<1%)
view
7 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
347:353 (<1%)
362:368 (<1%)
view
6 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
201:206 (<1%)
219:224 (<1%)
view
6 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
335:342 (<1%)
366:372 (<1%)
view
6 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
318:323 (<1%)
378:383 (<1%)
view
6 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
676:681 (<1%)
691:696 (<1%)
view
6 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
321:328 (<1%)
366:372 (<1%)
view
6 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
219:224 (<1%)
261:266 (<1%)
view
6 x 2 aws/hhvm1/lambdas
aws/hhvm1/lambdas
219:224 (<1%)
281:286 (<1%)
view