awslabs / aws-postgresql-jdbc
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,927 units with 31,154 lines of code in units (45.9% of code).
    • 26 very long units (6,025 lines of code)
    • 48 long units (3,338 lines of code)
    • 208 medium size units (6,100 lines of code)
    • 395 small units (5,661 lines of code)
    • 2,250 very small units (10,030 lines of code)
19% | 10% | 19% | 18% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java19% | 10% | 19% | 18% | 32%
groovy0% | 37% | 6% | 19% | 36%
kt0% | 0% | 100% | 0% | 0%
pl0% | 0% | 0% | 78% | 21%
kts0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
pgjdbc/src20% | 10% | 19% | 17% | 31%
test-gss/src0% | 37% | 6% | 19% | 36%
benchmarks/src0% | 0% | 18% | 29% | 51%
buildSrc/src0% | 0% | 100% | 0% | 0%
ROOT0% | 0% | 0% | 78% | 21%
pgjdbc0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_ja.java
576 1 0
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_bg.java
402 1 0
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_pt_BR.java
346 1 0
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_tr.java
346 1 0
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_sr.java
344 1 0
protected void processResults()
in pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
297 77 3
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_fr.java
292 1 0
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_de.java
292 1 0
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_it.java
276 1 0
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_zh_CN.java
230 1 0
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_zh_TW.java
230 1 0
public static List parseJdbcSql()
in pgjdbc/src/main/java/org/postgresql/core/Parser.java
218 87 6
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_ru.java
214 1 0
public static JdbcCallParseInfo modifyJdbcCall()
in pgjdbc/src/main/java/org/postgresql/core/Parser.java
181 64 5
static
in pgjdbc/src/main/java/org/postgresql/translation/messages_cs.java
180 1 0
public void setObject()
in pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
179 53 4
public ResultSet getProcedureColumns()
in pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
175 28 4
public ResultSet getFunctionColumns()
in pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
173 27 4
public static Number numeric()
in pgjdbc/src/main/java/org/postgresql/util/ByteConverter.java
170 45 3
public ResultSet getColumns()
in pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
165 36 4