GerritCodeReview / plugins_oauth
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 119 units with 1,207 lines of code in units (52.6% of code).
    • 1 very long units (102 lines of code)
    • 4 long units (266 lines of code)
    • 10 medium size units (369 lines of code)
    • 13 small units (151 lines of code)
    • 91 very small units (319 lines of code)
8% | 22% | 30% | 12% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java8% | 22% | 30% | 12% | 25%
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/oauth8% | 22% | 30% | 12% | 25%
tools0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public void run()
in src/main/java/com/googlesource/gerrit/plugins/oauth/InitOAuth.java
102 23 0
protected void configureServlets()
in src/main/java/com/googlesource/gerrit/plugins/oauth/HttpModule.java
88 15 0
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/AzureActiveDirectoryService.java
62 17 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/CasOAuthService.java
61 16 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/GoogleOAuthService.java
55 18 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/PhabricatorOAuthService.java
47 13 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/KeycloakOAuthService.java
45 10 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/FacebookOAuthService.java
38 13 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/BitbucketOAuthService.java
37 10 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/GitHubOAuthService.java
37 14 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/DexOAuthService.java
36 8 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/AirVantageOAuthService.java
36 7 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/GitLabOAuthService.java
34 12 1
public OAuthUserInfo getUserInfo()
in src/main/java/com/googlesource/gerrit/plugins/oauth/LemonLDAPOAuthService.java
34 12 1
private JsonObject retrieveJWTToken()
in src/main/java/com/googlesource/gerrit/plugins/oauth/GoogleOAuthService.java
25 8 1
public String getAuthorizationUrl()
in src/main/java/com/googlesource/gerrit/plugins/oauth/GoogleOAuthService.java
17 5 0
public OAuthToken getAccessToken()
in src/main/java/com/googlesource/gerrit/plugins/oauth/CasOAuthService.java
13 2 1
public OAuthToken getAccessToken()
in src/main/java/com/googlesource/gerrit/plugins/oauth/AzureActiveDirectoryService.java
11 2 1
public OAuthToken getAccessToken()
in src/main/java/com/googlesource/gerrit/plugins/oauth/DexOAuthService.java
11 2 1
public OAuthToken getAccessToken()
in src/main/java/com/googlesource/gerrit/plugins/oauth/PhabricatorOAuthService.java
11 2 1