GerritCodeReview / plugins_zuul
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 8 units with 96 lines of code in units (35.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (55 lines of code)
    • 0 small units (0 lines of code)
    • 6 very small units (41 lines of code)
0% | 0% | 57% | 0% | 42%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 62% | 0% | 37%
js0% | 0% | 50% | 0% | 50%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/main/java/com/googlesource/gerrit/plugins/zuul0% | 0% | 62% | 0% | 37%
gr-zuul0% | 0% | 50% | 0% | 50%
Alternative Visuals
Longest Units
Top 8 longest units
Unit# linesMcCabe index# params
public Response apply()
in src/main/java/com/googlesource/gerrit/plugins/zuul/GetCrd.java
34 4 1
static get properties()
in gr-zuul/gr-zuul.js
21 1 0
_onChangeChanged()
in gr-zuul/gr-zuul.js
10 2 0
protected void configure()
in src/main/java/com/googlesource/gerrit/plugins/zuul/Module.java
9 1 0
setHidden()
in gr-zuul/gr-zuul.js
8 2 1
public String fetch()
in src/main/java/com/googlesource/gerrit/plugins/zuul/CommitMessageFetcher.java
8 1 2
_computeDependencyUrl()
in gr-zuul/gr-zuul.js
3 1 1
protected void configureServlets()
in src/main/java/com/googlesource/gerrit/plugins/zuul/HttpModule.java
3 1 0