aws-samples / simple-game-studio-on-aws
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
  • 8% duplication:
    • 854 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 73 duplicated lines
  • 6 duplicates
system8% (73 lines)
Duplication per Extension
ts8% (73 lines)
Duplication per Component (primary)
lib/constructs8% (32 lines)
lib/constructs/vcs14% (29 lines)
lib/stacks5% (12 lines)
lib0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
8 x 2 lib/constructs
lib/constructs/vcs
jenkins.ts
svn.ts
195:203 (4%)
107:115 (7%)
view
7 x 2 lib/constructs/vcs
lib/constructs/vcs
perforce.ts
svn.ts
51:57 (7%)
86:92 (6%)
view
6 x 2 lib/stacks
lib/stacks
vcs-stack.ts
vcs-stack.ts
28:34 (14%)
47:53 (14%)
view
6 x 2 lib/constructs
lib/constructs/vcs
jenkins.ts
svn.ts
177:182 (3%)
88:93 (5%)
view
6 x 2 lib/constructs
lib/constructs/vcs
simple-ad.ts
svn.ts
30:35 (14%)
44:49 (5%)
view
6 x 2 lib/constructs
lib/constructs
jenkins.ts
jenkins.ts
75:80 (3%)
85:90 (3%)
view