GerritCodeReview / modules_git-refs-filter
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 25 units with 155 lines of code in units (51.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (23 lines of code)
    • 4 small units (57 lines of code)
    • 20 very small units (75 lines of code)
0% | 0% | 14% | 36% | 48%
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% | 14% | 36% | 48%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
gitrefsfilter0% | 0% | 14% | 36% | 48%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public Collection filter()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
23 4 3
public FilterRefsConfig()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/FilterRefsConfig.java
17 1 1
protected void configure()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/RefsFilterModule.java
15 1 0
public boolean isRefToShow()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/FilterRefsConfig.java
14 5 1
private boolean isOpen()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
11 2 3
public ForProjectWrapper()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
10 1 4
public ForProject project()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/WithUserWrapper.java
7 2 1
public void check()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
4 1 1
public Set test()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
4 1 1
public void check()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/WithUserWrapper.java
4 1 1
public Set test()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/WithUserWrapper.java
4 1 1
public ForRef ref()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
3 1 1
private boolean isChangeRef()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
3 1 1
private boolean isChangeMetaRef()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
3 2 1
public BooleanCondition testCond()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
3 1 1
public String resourcePath()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ForProjectWrapper.java
3 1 0
public String getDescription()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/FilterRefsCapability.java
3 1 0
public FilterRefsPermission()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/FilterRefsPermission.java
3 1 0
public BooleanCondition testCond()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/WithUserWrapper.java
3 1 1
public WithUser user()
in src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/RefsFilterPermissionBackend.java
3 1 1