dart-lang / csslib
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:
    • 7,045 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 158 duplicated lines
  • 9 duplicates
system2% (158 lines)
Duplication per Extension
dart2% (158 lines)
Duplication per Component (primary)
lib3% (75 lines)
lib/src1% (69 lines)
example17% (14 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
14 x 2 lib
lib
parser.dart
parser.dart
1176:1195 (<1%)
1258:1277 (<1%)
view
13 x 2 lib/src
lib/src
analyzer.dart
analyzer.dart
479:501 (2%)
802:824 (2%)
view
9 x 2 lib
lib
parser.dart
parser.dart
1640:1648 (<1%)
2266:2274 (<1%)
view
9 x 2 lib
lib/src
parser.dart
tokenizer_base.dart
2703:2711 (<1%)
177:185 (3%)
view
8 x 2 lib/src
lib/src
tokenizer_base.dart
tokenizer_base.dart
290:298 (2%)
353:361 (2%)
view
7 x 2 example
example
call_parser.dart
call_parser.dart
40:48 (10%)
58:66 (10%)
view
7 x 2 lib
lib
parser.dart
parser.dart
500:508 (<1%)
519:527 (<1%)
view
6 x 2 lib/src
lib/src
analyzer.dart
analyzer.dart
444:451 (1%)
723:730 (1%)
view
6 x 2 lib
lib/src
parser.dart
token_kind.dart
2414:2419 (<1%)
696:701 (<1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
10 x 2 lib/src
lib
tokenizer_base.dart
parser.dart
177:187 
2703:2713 
view
6 x 2 lib/src
lib/src
css_printer.dart
css_printer.dart
126:132 
135:141 
view