dart-lang / site-www
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
  • 5% duplication:
    • 6,023 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 318 duplicated lines
  • 33 duplicates
system5% (318 lines)
Duplication per Extension
html21% (188 lines)
yaml37% (76 lines)
scss2% (54 lines)
Duplication per Component (primary)
src34% (134 lines)
src/get-dart9% (92 lines)
src/_sass2% (54 lines)
src/tools64% (16 lines)
tool/effective-dart-rules47% (16 lines)
src/_tutorials12% (6 lines)
tool0% (0 lines)
tool/dart_tools0% (0 lines)
tool/dartpad_picker0% (0 lines)
ROOT0% (0 lines)
src/_data0% (0 lines)
src/_includes0% (0 lines)
src/_layouts0% (0 lines)
src/assets0% (0 lines)
src/_plugins0% (0 lines)

Duplication Between Components (50+ lines)

G src/get-dart src/get-dart tool/effective-dart-rules tool/effective-dart-rules src/get-dart--tool/effective-dart-rules 64

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 33 duplicates...
Size#FoldersFilesLinesCode
20 x 2 src/get-dart/archive
src/get-dart/sdk_builds.dart
analysis_options.yaml
analysis_options.yaml
1:22 (100%)
1:22 (100%)
view
13 x 2 src/get-dart/dart_sdk_archive
src/get-dart/sdk_builds.dart
analysis_options.yaml
analysis_options.yaml
1:15 (61%)
1:15 (65%)
view
13 x 2 src/get-dart/archive
src/get-dart/dart_sdk_archive
analysis_options.yaml
analysis_options.yaml
1:15 (65%)
1:15 (61%)
view
12 x 2 src/_sass/components
src/_sass/components
_sidebar.scss
_sidebar.scss
36:49 (7%)
149:162 (7%)
view
9 x 2 src
src
index.html
index.html
178:187 (3%)
341:350 (3%)
view
9 x 2 src/get-dart/archive
tool/effective-dart-rules
analysis_options.yaml
analysis_options.yaml
7:15 (45%)
9:17 (39%)
view
9 x 2 src/get-dart/dart_sdk_archive
tool/effective-dart-rules
analysis_options.yaml
analysis_options.yaml
7:15 (42%)
9:17 (39%)
view
9 x 2 src
src
index.html
index.html
110:119 (3%)
272:281 (3%)
view
9 x 2 src/get-dart/sdk_builds.dart
tool/effective-dart-rules
analysis_options.yaml
analysis_options.yaml
7:15 (45%)
9:17 (39%)
view
8 x 2 src/get-dart/archive
src/get-dart/dart_sdk_archive/web
_archives_table.html
index.html
17:26 (26%)
30:39 (9%)
view
8 x 2 src/get-dart/dart_sdk_archive/web
src/get-dart/dart_sdk_archive/web
index.html
index.html
30:39 (9%)
65:74 (9%)
view
8 x 2 src/get-dart/dart_sdk_archive/web
src/get-dart/dart_sdk_archive/web
index.html
index.html
65:74 (9%)
98:107 (9%)
view
8 x 2 src/get-dart/dart_sdk_archive/web
src/get-dart/dart_sdk_archive/web
index.html
index.html
30:39 (9%)
98:107 (9%)
view
8 x 2 src
src
index.html
index.html
153:161 (2%)
316:324 (2%)
view
8 x 2 src/get-dart/archive
src/get-dart/dart_sdk_archive/web
_archives_table.html
index.html
17:26 (26%)
98:107 (9%)
view
8 x 2 src/tools/pub/cmd
src/tools/pub/cmd
_pub-outdated-output-columns.html
_pub-outdated-output.html
2:11 (80%)
3:12 (53%)
view
8 x 2 src/get-dart/archive
src/get-dart/dart_sdk_archive/web
_archives_table.html
index.html
17:26 (26%)
65:74 (9%)
view
7 x 2 src/get-dart/sdk_builds.dart
tool/effective-dart-rules
analysis_options.yaml
analysis_options.yaml
16:22 (35%)
19:25 (30%)
view
7 x 2 src
src
index.html
index.html
166:173 (2%)
329:336 (2%)
view
7 x 2 src/get-dart/archive
src/get-dart/dart_sdk_archive
analysis_options.yaml
analysis_options.yaml
16:22 (35%)
17:23 (33%)
view