flutter / buildroot
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:
    • 10,024 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 760 duplicated lines
  • 49 duplicates
system7% (760 lines)
Duplication per Extension
gn21% (588 lines)
gni7% (172 lines)
Duplication per Component (primary)
build/toolchain19% (341 lines)
build/config11% (339 lines)
build3% (80 lines)
build_overrides0% (0 lines)
build/module_args0% (0 lines)
build/linux0% (0 lines)
build/pyutil0% (0 lines)
build/win0% (0 lines)
build/secondary0% (0 lines)
build/fuchsia0% (0 lines)
build/mac0% (0 lines)
build/android0% (0 lines)
build/vulkan0% (0 lines)
build/sanitizers0% (0 lines)
tools0% (0 lines)
tools/dart0% (0 lines)
tools/buildtools0% (0 lines)
ROOT0% (0 lines)
gpu/GLES20% (0 lines)
gpu/command_buffer0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 49 duplicates...
Size#FoldersFilesLinesCode
47 x 2 build/config
build/config
gn
BUILDCONFIG.gn
BUILDCONFIG.gn
658:704 (8%)
749:795 (8%)
view
39 x 2 build/config
build/config
gn
BUILDCONFIG.gn
BUILDCONFIG.gn
610:652 (7%)
708:747 (7%)
view
24 x 2 build/toolchain/custom
build/toolchain/fuchsia
gn
BUILD.gn
BUILD.gn
53:83 (22%)
72:102 (19%)
view
24 x 2 build/config
build/config
gni
locales.gni
locales.gni
19:42 (20%)
77:100 (20%)
view
23 x 2 build/toolchain/custom
build/toolchain/fuchsia
gn
BUILD.gn
BUILD.gn
122:152 (21%)
141:171 (18%)
view
22 x 2 build/toolchain/custom
build/toolchain/fuchsia
gn
BUILD.gn
BUILD.gn
86:120 (20%)
105:139 (17%)
view
22 x 2 build
build
gni
compiled_action.gni
compiled_action.gni
112:136 (13%)
166:190 (13%)
view
15 x 2 build/toolchain/mac
build/toolchain/mac
gn
BUILD.gn
BUILD.gn
277:291 (6%)
296:310 (6%)
view
14 x 2 build/toolchain/mac
build/toolchain/mac
gn
BUILD.gn
BUILD.gn
225:238 (6%)
244:257 (6%)
view
13 x 2 build/toolchain/mac
build/toolchain/mac
gn
BUILD.gn
BUILD.gn
226:238 (5%)
277:289 (5%)
view
13 x 2 build/toolchain/mac
build/toolchain/mac
gn
BUILD.gn
BUILD.gn
245:257 (5%)
296:308 (5%)
view
13 x 2 build/config
build/config
gni
locales.gni
locales.gni
45:57 (11%)
103:115 (11%)
view
13 x 2 build/toolchain/mac
build/toolchain/mac
gn
BUILD.gn
BUILD.gn
226:238 (5%)
296:308 (5%)
view
13 x 2 build/toolchain/mac
build/toolchain/mac
gn
BUILD.gn
BUILD.gn
245:257 (5%)
277:289 (5%)
view
12 x 2 build/toolchain/fuchsia
build/toolchain/mac
gn
BUILD.gn
BUILD.gn
145:161 (9%)
192:206 (5%)
view
12 x 2 build/toolchain/custom
build/toolchain/mac
gn
BUILD.gn
BUILD.gn
126:142 (11%)
192:206 (5%)
view
12 x 2 build
build
gni
json_schema_api.gni
json_schema_api.gni
213:225 (5%)
228:240 (5%)
view
11 x 2 build/toolchain/linux
build/toolchain/linux
gn
BUILD.gn
BUILD.gn
37:48 (10%)
74:85 (10%)
view
9 x 2 build/config
build/config
gni
locales.gni
locales.gni
7:15 (7%)
65:73 (7%)
view
8 x 2 build/toolchain/android
build/toolchain/wasm
gn
BUILD.gn
BUILD.gn
35:42 (8%)
11:18 (33%)
view