flutter / flutter-github-scripts.dart
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 61 units with 934 lines of code in units (40.4% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (52 lines of code)
    • 15 medium size units (471 lines of code)
    • 17 small units (251 lines of code)
    • 28 very small units (160 lines of code)
0% | 5% | 50% | 26% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 5% | 50% | 26% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib0% | 5% | 50% | 26% | 17%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
String toTsv()
in lib/github_datatypes.dart
52 16 0
String toMarkdown()
in lib/github_datatypes.dart
50 19 3
static PullRequest fromGraphQL()
in lib/github_datatypes.dart
48 18 1
String toTsv()
in lib/github_datatypes.dart
46 14 0
Stream searchIssuePRs()
in lib/github_queries.dart
43 7 1
double stdev()
in lib/github_datatypes.dart
36 10 0
static Issue fromGraphQL()
in lib/github_datatypes.dart
35 13 1
double mean()
in lib/github_datatypes.dart
33 10 0
String verbose()
in lib/github_datatypes.dart
25 7 2
String toString()
in lib/github_queries.dart
24 6 0
factory DateRange()
in lib/github_queries.dart
23 11 6
String verbose()
in lib/github_datatypes.dart
22 5 2
static Cluster byReviewers()
in lib/github_datatypes.dart
22 7 1
String summary()
in lib/github_datatypes.dart
22 6 0
static Cluster byLabel()
in lib/github_datatypes.dart
21 7 1
static Cluster byAssignees()
in lib/github_datatypes.dart
21 8 1
static String queryToString()
in lib/github_queries.dart
20 6 2
static TimelineItem fromGraphQL()
in lib/github_datatypes.dart
19 8 1
String summary()
in lib/github_datatypes.dart
19 7 5
static Cluster byMilestone()
in lib/github_datatypes.dart
18 6 1