dart-lang / js_facade_gen
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
  • 1% duplication:
    • 4,472 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 54 duplicated lines
  • 4 duplicates
system1% (54 lines)
Duplication per Extension
ts1% (54 lines)
Duplication per Component (primary)
lib<1% (36 lines)
lib/json/named_declarations12% (18 lines)
ROOT0% (0 lines)
lib/json0% (0 lines)
lib/json/module_declarations0% (0 lines)
lib/json/types0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
9 x 2 lib/json/named_declarations
lib/json/named_declarations
class_declaration.ts
interface_declaration.ts
18:28 (60%)
18:28 (60%)
view
6 x 2 lib
lib
declaration.ts
declaration.ts
337:342 (<1%)
405:410 (<1%)
view
6 x 2 lib
lib
facade_converter.ts
facade_converter.ts
691:696 (1%)
795:800 (1%)
view
6 x 2 lib
lib
merge.ts
merge.ts
423:428 (1%)
436:441 (1%)
view