dart-lang / webcore
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
  • 2% duplication:
    • 9,149 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 238 duplicated lines
  • 18 duplicates
system2% (238 lines)
Duplication per Extension
py2% (238 lines)
Duplication per Component (primary)
bindings/scripts2% (154 lines)
modules/bluetooth/testing/clusterfuzz6% (54 lines)
idl_parser3% (30 lines)
bindings0% (0 lines)
core/frame0% (0 lines)
core/inspector0% (0 lines)
blink/tools/blinkpy0% (0 lines)
blink/tools/blinkpy/common0% (0 lines)
blink/tools0% (0 lines)
modules/webgl0% (0 lines)
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
14 x 2 modules/bluetooth/testing/clusterfuzz
modules/bluetooth/testing/clusterfuzz
wbt_fakes.py
wbt_fakes.py
108:121 (7%)
149:162 (7%)
view
10 x 2 bindings/scripts
bindings/scripts
idl_compiler.py
idl_compiler.py
156:165 (8%)
169:178 (8%)
view
8 x 2 bindings/scripts
idl_parser
blink_idl_parser.py
idl_parser.py
121:128 (15%)
1162:1169 (1%)
view
8 x 2 idl_parser
idl_parser
idl_parser.py
idl_parser.py
372:379 (1%)
705:712 (1%)
view
7 x 2 modules/bluetooth/testing/clusterfuzz
modules/bluetooth/testing/clusterfuzz
wbt_fakes.py
wbt_fakes.py
132:138 (3%)
169:175 (3%)
view
7 x 2 modules/bluetooth/testing/clusterfuzz
modules/bluetooth/testing/clusterfuzz
wbt_fakes.py
wbt_fakes.py
123:129 (3%)
164:170 (3%)
view
7 x 2 bindings/scripts
bindings/scripts
code_generator_v8.py
code_generator_v8.py
252:258 (2%)
292:298 (2%)
view
7 x 2 bindings/scripts
bindings/scripts
idl_definitions.py
idl_definitions.py
442:448 (<1%)
609:615 (<1%)
view
7 x 2 bindings/scripts
bindings/scripts
idl_compiler.py
idl_compiler.py
131:138 (5%)
145:152 (5%)
view
6 x 2 bindings/scripts
bindings/scripts
idl_definitions.py
idl_definitions.py
221:227 (<1%)
246:252 (<1%)
view
6 x 2 bindings/scripts
bindings/scripts
code_generator_v8.py
code_generator_v8.py
324:329 (2%)
384:389 (2%)
view
6 x 2 bindings/scripts
bindings/scripts
v8_utilities.py
v8_utilities.py
604:611 (1%)
653:660 (1%)
view
6 x 2 idl_parser
idl_parser
idl_parser.py
idl_parser.py
374:379 (<1%)
783:788 (<1%)
view
6 x 2 bindings/scripts
bindings/scripts
code_generator_v8.py
code_generator_v8.py
336:341 (2%)
394:399 (2%)
view
6 x 2 bindings/scripts
bindings/scripts
v8_utilities.py
v8_utilities.py
618:625 (1%)
667:674 (1%)
view
6 x 2 bindings/scripts
bindings/scripts
blink_idl_lexer.py
blink_idl_parser.py
115:121 (15%)
133:139 (11%)
view
6 x 2 bindings/scripts
bindings/scripts
idl_definitions.py
idl_definitions.py
177:182 (<1%)
461:466 (<1%)
view
6 x 2 idl_parser
idl_parser
idl_parser.py
idl_parser.py
707:712 (<1%)
783:788 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
10 x 2 bindings/scripts
bindings/scripts
idl_compiler.py
idl_compiler.py
0:0 
0:0 
view