aws-samples / cdk-alexa-skill
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
  • 48% duplication:
    • 777 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 376 duplicated lines
  • 134 duplicates
system48% (376 lines)
Duplication per Extension
po71% (258 lines)
mo81% (100 lines)
py13% (18 lines)
Duplication per Component (primary)
example/lambda/locales/fr-CA100% (49 lines)
example/lambda/locales/fr-FR100% (49 lines)
example/lambda/locales/es-ES100% (48 lines)
example/lambda/locales/es-MX100% (48 lines)
example/lambda/locales/es-US100% (48 lines)
example/lambda/locales/pt-BR50% (24 lines)
example/lambda/locales/it-IT50% (24 lines)
example/lambda/locales/de-DE50% (24 lines)
example/lambda/locales/ja-JP45% (22 lines)
example/lambda/locales/hi-IN45% (22 lines)
example/lambda18% (18 lines)
src0% (0 lines)
custom-resource-runtime/get-lambda-permission-statement-id-handler0% (0 lines)
example0% (0 lines)
example/lambda/alexa0% (0 lines)

Duplication Between Components (50+ lines)

G example/lambda/locales/fr-CA example/lambda/locales/fr-CA example/lambda/locales/fr-FR example/lambda/locales/fr-FR example/lambda/locales/fr-CA--example/lambda/locales/fr-FR 98 example/lambda/locales/es-ES example/lambda/locales/es-ES example/lambda/locales/es-US example/lambda/locales/es-US example/lambda/locales/es-ES--example/lambda/locales/es-US 96 example/lambda/locales/es-MX example/lambda/locales/es-MX example/lambda/locales/es-ES--example/lambda/locales/es-MX 96 example/lambda/locales/es-MX--example/lambda/locales/es-US 96

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 134 duplicates...
Size#FoldersFilesLinesCode
36 x 2 example/lambda/locales/es-ES/LC_MESSAGES
example/lambda/locales/es-US/LC_MESSAGES
po
data.po
data.po
1:42 (100%)
1:42 (100%)
view
36 x 2 example/lambda/locales/fr-CA/LC_MESSAGES
example/lambda/locales/fr-FR/LC_MESSAGES
po
data.po
data.po
1:42 (100%)
1:42 (100%)
view
36 x 2 example/lambda/locales/es-ES/LC_MESSAGES
example/lambda/locales/es-MX/LC_MESSAGES
po
data.po
data.po
1:42 (100%)
1:42 (100%)
view
36 x 2 example/lambda/locales/es-MX/LC_MESSAGES
example/lambda/locales/es-US/LC_MESSAGES
po
data.po
data.po
1:42 (100%)
1:42 (100%)
view
13 x 2 example/lambda/locales/fr-CA/LC_MESSAGES
example/lambda/locales/fr-FR/LC_MESSAGES
mo
data.mo
data.mo
1:13 (100%)
1:13 (100%)
view
12 x 2 example/lambda/locales/es-MX/LC_MESSAGES
example/lambda/locales/es-US/LC_MESSAGES
mo
data.mo
data.mo
1:12 (100%)
1:12 (100%)
view
12 x 2 example/lambda/locales/es-ES/LC_MESSAGES
example/lambda/locales/es-US/LC_MESSAGES
mo
data.mo
data.mo
1:12 (100%)
1:12 (100%)
view
12 x 2 example/lambda/locales/es-ES/LC_MESSAGES
example/lambda/locales/es-MX/LC_MESSAGES
mo
data.mo
data.mo
1:12 (100%)
1:12 (100%)
view
8 x 2 example/lambda/locales/fr-FR/LC_MESSAGES
example/lambda/locales/pt-BR/LC_MESSAGES
mo
data.mo
data.mo
4:11 (61%)
3:10 (66%)
view
8 x 2 example/lambda/locales/es-MX/LC_MESSAGES
example/lambda/locales/pt-BR/LC_MESSAGES
po
data.po
data.po
1:8 (22%)
1:8 (22%)
view
8 x 2 example/lambda/locales/es-MX/LC_MESSAGES
example/lambda/locales/ja-JP/LC_MESSAGES
po
data.po
data.po
1:8 (22%)
1:8 (22%)
view
8 x 2 example/lambda/locales/es-US/LC_MESSAGES
example/lambda/locales/it-IT/LC_MESSAGES
mo
data.mo
data.mo
3:10 (66%)
3:10 (66%)
view
8 x 2 example/lambda/locales/it-IT/LC_MESSAGES
example/lambda/locales/ja-JP/LC_MESSAGES
po
data.po
data.po
1:8 (22%)
1:8 (22%)
view
8 x 2 example/lambda/locales/fr-FR/LC_MESSAGES
example/lambda/locales/hi-IN/LC_MESSAGES
po
data.po
data.po
1:8 (22%)
1:8 (22%)
view
8 x 2 example/lambda/locales/es-MX/LC_MESSAGES
example/lambda/locales/it-IT/LC_MESSAGES
po
data.po
data.po
10:17 (22%)
10:17 (22%)
view
8 x 2 example/lambda/locales/hi-IN/LC_MESSAGES
example/lambda/locales/ja-JP/LC_MESSAGES
po
data.po
data.po
1:8 (22%)
1:8 (22%)
view
8 x 2 example/lambda/locales/fr-FR/LC_MESSAGES
example/lambda/locales/it-IT/LC_MESSAGES
po
data.po
data.po
1:8 (22%)
1:8 (22%)
view
8 x 2 example/lambda/locales/de-DE/LC_MESSAGES
example/lambda/locales/es-ES/LC_MESSAGES
mo
data.mo
data.mo
3:10 (66%)
3:10 (66%)
view
8 x 2 example/lambda/locales/de-DE/LC_MESSAGES
example/lambda/locales/pt-BR/LC_MESSAGES
po
data.po
data.po
1:8 (22%)
1:8 (22%)
view
8 x 2 example/lambda/locales/es-ES/LC_MESSAGES
example/lambda/locales/it-IT/LC_MESSAGES
po
data.po
data.po
1:8 (22%)
1:8 (22%)
view