GerritCodeReview / plugins_supermanifest
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 144 units with 2,192 lines of code in units (77.0% of code).
    • 1 very long units (117 lines of code)
    • 9 long units (641 lines of code)
    • 19 medium size units (720 lines of code)
    • 18 small units (280 lines of code)
    • 97 very small units (434 lines of code)
5% | 29% | 32% | 12% | 19%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java5% | 29% | 32% | 12% | 19%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
java/com/googlesource/gerrit/plugins/supermanifest12% | 15% | 27% | 16% | 28%
javatests/com/googlesource/gerrit/plugins/supermanifest0% | 39% | 37% | 10% | 12%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void updateSubmodules()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriUpdater.java
117 27 5
public static JiriProjects getProjects()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriManifestParser.java
88 16 4
public void basicFunctionalityWorks()
in javatests/com/googlesource/gerrit/plugins/supermanifest/JiriSuperManifestIT.java
86 1 0
public void ImportTagWithRevisionWorks()
in javatests/com/googlesource/gerrit/plugins/supermanifest/JiriSuperManifestIT.java
83 1 0
public void ImportTagWithRemoteBranchWorks()
in javatests/com/googlesource/gerrit/plugins/supermanifest/JiriSuperManifestIT.java
78 1 0
public void basicFunctionalityWorks()
in javatests/com/googlesource/gerrit/plugins/supermanifest/RepoSuperManifestIT.java
72 1 0
public ConfigEntry()
in java/com/googlesource/gerrit/plugins/supermanifest/ConfigEntry.java
66 15 2
public void relativeFetch()
in javatests/com/googlesource/gerrit/plugins/supermanifest/JiriSuperManifestIT.java
60 1 0
public void ImportTagWorks()
in javatests/com/googlesource/gerrit/plugins/supermanifest/JiriSuperManifestIT.java
57 1 0
public void wildcardDestBranchWorks()
in javatests/com/googlesource/gerrit/plugins/supermanifest/JiriSuperManifestIT.java
51 1 0
static URI relativize()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriUpdater.java
49 15 2
public void remoteImportFails()
in javatests/com/googlesource/gerrit/plugins/supermanifest/JiriSuperManifestIT.java
47 1 0
public void manifestIncludesOtherManifest()
in javatests/com/googlesource/gerrit/plugins/supermanifest/JiriSuperManifestIT.java
46 1 0
public void testIgnoreRemoteFailure()
in javatests/com/googlesource/gerrit/plugins/supermanifest/RepoSuperManifestIT.java
46 1 0
public void wildcardDestBranchWorks()
in javatests/com/googlesource/gerrit/plugins/supermanifest/RepoSuperManifestIT.java
46 1 0
public void rawSha1Ref()
in javatests/com/googlesource/gerrit/plugins/supermanifest/RepoSuperManifestIT.java
44 1 0
public void relativeFetch()
in javatests/com/googlesource/gerrit/plugins/supermanifest/RepoSuperManifestIT.java
43 1 0
public void httpEndpoint()
in javatests/com/googlesource/gerrit/plugins/supermanifest/RepoSuperManifestIT.java
42 1 0
public void manifestIncludesOtherManifest()
in javatests/com/googlesource/gerrit/plugins/supermanifest/RepoSuperManifestIT.java
42 1 0
public void wildcardDestBranchWithExclusion()
in javatests/com/googlesource/gerrit/plugins/supermanifest/RepoSuperManifestIT.java
38 2 0