aws / aws-northstar
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
  • 15% duplication:
    • 14,561 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,290 duplicated lines
  • 412 duplicates
system15% (2,290 lines)
Duplication per Extension
tsx17% (2,217 lines)
ts3% (73 lines)
Duplication per Component (primary)
src/components15% (1,742 lines)
src/charts55% (231 lines)
src/layouts13% (176 lines)
src/advanced23% (141 lines)
styleguide/components0% (0 lines)
ROOT0% (0 lines)
src0% (0 lines)
src/config0% (0 lines)
src/props0% (0 lines)
src/icons0% (0 lines)
src/utils0% (0 lines)
src/themes0% (0 lines)
src/hooks0% (0 lines)
jest0% (0 lines)

Duplication Between Components (50+ lines)

G src/components src/components src/layouts src/layouts src/components--src/layouts 90

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 412 duplicates...
Size#FoldersFilesLinesCode
57 x 2 src/components/Autosuggest
src/components/Multiselect
index.stories.tsx
index.stories.tsx
179:248 (26%)
125:194 (36%)
view
49 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
519:575 (3%)
982:1038 (3%)
view
43 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
254:304 (3%)
1059:1109 (3%)
view
39 x 2 src/charts/AreaChart
src/charts/LineChart
index.stories.tsx
index.stories.tsx
22:69 (78%)
22:69 (59%)
view
39 x 2 src/charts/AreaChart
src/charts/BarChart
index.stories.tsx
index.stories.tsx
22:69 (78%)
22:69 (59%)
view
39 x 2 src/charts/BarChart
src/charts/LineChart
index.stories.tsx
index.stories.tsx
22:69 (59%)
22:69 (59%)
view
39 x 2 src/charts/AreaChart
src/charts/ScatterChart
index.stories.tsx
index.stories.tsx
22:69 (78%)
22:69 (78%)
view
39 x 2 src/charts/BarChart
src/charts/ScatterChart
index.stories.tsx
index.stories.tsx
22:69 (59%)
22:69 (78%)
view
39 x 2 src/charts/LineChart
src/charts/ScatterChart
index.stories.tsx
index.stories.tsx
22:69 (59%)
22:69 (78%)
view
26 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
314:341 (2%)
354:381 (2%)
view
25 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
119:149 (1%)
928:958 (1%)
view
25 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
532:562 (1%)
598:628 (1%)
view
25 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
598:628 (1%)
995:1025 (1%)
view
20 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
170:193 (1%)
476:499 (1%)
view
20 x 2 src/components/Autosuggest
src/components/Multiselect
index.stories.tsx
index.stories.tsx
82:106 (9%)
73:97 (12%)
view
19 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
879:900 (1%)
1015:1036 (1%)
view
19 x 2 src/components/FormRenderer
src/components/FormRenderer
index.stories.tsx
index.stories.tsx
552:573 (1%)
879:900 (1%)
view
18 x 2 src/components/Multiselect
src/components/Select
index.stories.tsx
index.stories.tsx
160:178 (11%)
272:290 (7%)
view
18 x 2 src/components/Autosuggest
src/components/Select
index.stories.tsx
index.stories.tsx
214:232 (8%)
272:290 (7%)
view
18 x 2 src/components/FormRenderer/components/TextField
src/components/FormRenderer/components/Textarea
index.tsx
index.tsx
34:52 (40%)
34:51 (41%)
view