GerritCodeReview / plugins_rename-project
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 88 units with 900 lines of code in units (58.4% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (53 lines of code)
    • 8 medium size units (242 lines of code)
    • 20 small units (312 lines of code)
    • 59 very small units (293 lines of code)
0% | 5% | 26% | 34% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 5% | 27% | 35% | 31%
py0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/main/java/com/googlesource/gerrit/plugins/renameproject0% | 10% | 31% | 28% | 29%
src/main/java/com/googlesource/gerrit/plugins/renameproject/database0% | 0% | 52% | 34% | 13%
src/main/java/com/googlesource/gerrit/plugins/renameproject/conditions0% | 0% | 0% | 80% | 19%
src/main/java/com/googlesource/gerrit/plugins/renameproject/monitor0% | 0% | 0% | 32% | 67%
src/main/java/com/googlesource/gerrit/plugins/renameproject/fs0% | 0% | 0% | 45% | 54%
tools0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void performRevert()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/RevertRenameProject.java
53 8 5
private void updateWatchEntries()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/database/DatabaseRenameHandler.java
47 6 1
void doRename()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProject.java
43 4 4
public void run()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameCommand.java
29 5 0
public List rename()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/database/DatabaseRenameHandler.java
28 3 3
public void onRename()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameLog.java
27 5 4
public OutputStream newErrorBufferStream()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/SshHelper.java
24 5 0
protected void configure()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/Module.java
23 1 0
private void audit()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameLog.java
21 4 5
public void updateIndex()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/database/IndexUpdateHandler.java
19 3 3
private void assertIsNotSubscribed()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/conditions/RenamePreconditions.java
19 4 1
public List getChangeIds()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/database/DatabaseRenameHandler.java
18 2 1
protected void sendUpdate()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/monitor/CommandProgressMonitor.java
18 4 0
private void logPerformedStep()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProject.java
17 5 3
void replicateRename()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProject.java
17 4 3
public int executeRemoteSsh()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/SshHelper.java
17 2 3
private void renameGitRepository()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/fs/FilesystemRenameHandler.java
17 2 3
protected void writeDetails()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/monitor/CommandProgressMonitor.java
17 3 1
private void assertHasNoChildProjects()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/conditions/RenamePreconditions.java
17 3 1
private boolean continueRename()
in src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameCommand.java
16 3 2