dart-lang / source_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
  • 2% duplication:
    • 1,254 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 36 duplicated lines
  • 7 duplicates
system2% (36 lines)
Duplication per Extension
yaml8% (24 lines)
dart1% (12 lines)
Duplication per Component (primary)
source_gen/lib/src1% (12 lines)
example13% (6 lines)
_test_annotations66% (6 lines)
example_usage13% (6 lines)
source_gen10% (6 lines)
example/lib0% (0 lines)
example/lib/src0% (0 lines)
ROOT0% (0 lines)
example_usage/lib0% (0 lines)
source_gen/lib0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
6 x 2 example
example_usage
mono_pkg.yaml
mono_pkg.yaml
2:7 (100%)
6:11 (42%)
view
6 x 2 source_gen/lib/src
source_gen/lib/src
type_checker.dart
type_checker.dart
65:71 (2%)
87:93 (2%)
view
6 x 2 _test_annotations
source_gen
mono_pkg.yaml
mono_pkg.yaml
2:7 (100%)
10:15 (30%)
view
6 x 2 _test_annotations
example_usage
mono_pkg.yaml
mono_pkg.yaml
2:7 (100%)
6:11 (42%)
view
6 x 2 _test_annotations
example
mono_pkg.yaml
mono_pkg.yaml
2:7 (100%)
2:7 (100%)
view
6 x 2 example
source_gen
mono_pkg.yaml
mono_pkg.yaml
2:7 (100%)
10:15 (30%)
view
6 x 2 example_usage
source_gen
mono_pkg.yaml
mono_pkg.yaml
6:11 (42%)
10:15 (30%)
view