GerritCodeReview / egit-github
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 2,027 units with 13,171 lines of code in units (71.4% of code).
    • 0 very long units (0 lines of code)
    • 15 long units (998 lines of code)
    • 81 medium size units (2,448 lines of code)
    • 178 small units (2,560 lines of code)
    • 1,753 very small units (7,165 lines of code)
0% | 7% | 18% | 19% | 54%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 7% | 18% | 19% | 54%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui0% | 21% | 35% | 14% | 28%
org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core0% | 7% | 31% | 22% | 38%
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client0% | 7% | 23% | 16% | 52%
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service0% | 0% | 9% | 42% | 48%
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/util0% | 0% | 40% | 21% | 38%
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core0% | 0% | 0% | 1% | 98%
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public void createControl()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositorySearchWizardPage.java
91 5 1
public void createControl()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositorySelectionWizardPage.java
85 8 1
public Object execute()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/CheckoutPullRequestHandler.java
82 12 1
private void createAttachmentTable()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/gist/GistAttachmentPart.java
76 6 2
protected Control createContent()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/CommitAttributePart.java
71 4 2
public void setVisible()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositorySelectionWizardPage.java
68 13 1
public TaskData fillTaskData()
in org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
67 7 3
public Event deserialize()
in org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/EventFormatter.java
60 27 3
public boolean performFinish()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositoryImportWizard.java
60 8 0
public Object execute()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/gist/CreateGistHandler.java
59 26 1
public IStatus performQuery()
in org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueConnector.java
57 11 5
protected void addTokenCheckbox()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/HttpRepositorySettingsPage.java
56 8 1
public Object execute()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/RebasePullRequestHandler.java
56 9 1
private void createOptionsArea()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/issue/IssueRepositoryQueryPage.java
55 1 1
public Object execute()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/MergePullRequestHandler.java
55 9 1
public RepositoryResponse postTaskData()
in org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
50 8 4
private Job createCloneJob()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/gist/CloneGistHandler.java
50 4 2
public RepositoryResponse postTaskData()
in org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java
47 12 4
public void createControl()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/issue/IssueLabelAttributeEditor.java
47 2 2
public void taskActivated()
in org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestContextSynchronizer.java
47 12 1