GerritCodeReview / plugins_zuul-results-summary
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 11 units with 250 lines of code in units (81.7% of code).
    • 1 very long units (104 lines of code)
    • 1 long units (66 lines of code)
    • 0 medium size units (0 lines of code)
    • 4 small units (53 lines of code)
    • 5 very small units (27 lines of code)
41% | 26% | 0% | 21% | 10%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js46% | 29% | 0% | 16% | 7%
java0% | 0% | 0% | 62% | 37%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
zuul-results-summary46% | 29% | 0% | 16% | 7%
java/com/googlesource/gerrit/plugins/zuulresultssummary0% | 0% | 0% | 62% | 37%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
static get template()
in zuul-results-summary/zuul-results-summary.js
104 1 0
_processMessages()
in zuul-results-summary/zuul-results-summary.js
66 12 1
_get_status_and_pipeline()
in zuul-results-summary/zuul-results-summary.js
15 4 1
protected void configure()
in java/com/googlesource/gerrit/plugins/zuulresultssummary/Module.java
15 1 0
async _projectEnabled()
in zuul-results-summary/zuul-results-summary.js
12 3 1
static get properties()
in zuul-results-summary/zuul-results-summary.js
11 1 0
public Response apply()
in java/com/googlesource/gerrit/plugins/zuulresultssummary/GetConfig.java
9 1 1
async _processChange()
in zuul-results-summary/zuul-results-summary.js
6 2 1
_match_message_via_regex()
in zuul-results-summary/zuul-results-summary.js
5 1 1
_match_message_via_tag()
in zuul-results-summary/zuul-results-summary.js
4 2 1
static get template()
in zuul-results-summary/zuul-results-summary.js
3 1 0