GerritCodeReview / plugins_reviewers
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 84 units with 861 lines of code in units (56.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 12 medium size units (367 lines of code)
    • 12 small units (192 lines of code)
    • 60 very small units (302 lines of code)
0% | 0% | 42% | 22% | 35%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 44% | 32% | 23%
java0% | 0% | 40% | 12% | 46%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
web0% | 0% | 44% | 32% | 23%
src/main/java/com/googlesource/gerrit/plugins/reviewers0% | 0% | 51% | 16% | 31%
src/main/java/com/googlesource/gerrit/plugins/reviewers/config0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
override render()
in web/rv-filter-section.ts
45 1 0
protected void configure()
in src/main/java/com/googlesource/gerrit/plugins/reviewers/Module.java
40 3 0
private void addReviewers()
in src/main/java/com/googlesource/gerrit/plugins/reviewers/AddReviewers.java
36 6 0
private void onEvent()
in src/main/java/com/googlesource/gerrit/plugins/reviewers/Reviewers.java
36 9 1
static override get styles()
in web/rv-filter-section.ts
35 1 0
static override get styles()
in web/rv-reviewer.ts
30 1 0
override render()
in web/rv-edit-screen.ts
29 2 0
override render()
in web/rv-reviewer.ts
26 4 0
private void resolveGroup()
in src/main/java/com/googlesource/gerrit/plugins/reviewers/ReviewersResolver.java
24 3 5
private boolean resolveAccount()
in src/main/java/com/googlesource/gerrit/plugins/reviewers/ReviewersResolver.java
23 5 5
renderAutocomplete()
in web/rv-reviewer.ts
22 2 0
public Set suggestReviewers()
in src/main/java/com/googlesource/gerrit/plugins/reviewers/ReviewerSuggest.java
21 5 4
static override get styles()
in web/rv-edit-screen.ts
20 1 0
override render()
in web/rv-reviewers.ts
19 1 0
private renderSection()
in web/rv-edit-screen.ts
19 1 1
private void validateReviewer()
in src/main/java/com/googlesource/gerrit/plugins/reviewers/PutReviewers.java
19 4 1
private renderReviewer()
in web/rv-filter-section.ts
16 1 2
private handleReviewerDeleted()
in web/rv-filter-section.ts
16 3 2
private putReviewer()
in web/rv-filter-section.ts
16 3 3
override connectedCallback()
in web/rv-reviewers.ts
15 3 0