aws / amazon-keyspaces-cql-to-cfn-converter
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 19 units with 99 lines of code in units (8.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 0 small units (0 lines of code)
    • 19 very small units (99 lines of code)
0% | 0% | 0% | 0% | 100%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
kt0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/main/kotlin/software/aws/mcs/cql2cfn/cql0% | 0% | 0% | 0% | 100%
src/main/kotlin/software/aws/mcs/cql2cfn/util0% | 0% | 0% | 0% | 100%
src/main/kotlin/software/aws/mcs/cql2cfn0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
override fun run()
in src/main/kotlin/software/aws/mcs/cql2cfn/Main.kt
10 2 0
fun parse()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/CqlScriptParser.kt
9 2 1
override fun validate()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
8 4 0
fun validate()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
7 2 0
fun warn()
in src/main/kotlin/software/aws/mcs/cql2cfn/util/Logger.kt
6 2 1
fun addProperty()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
6 2 2
fun defineCustomProperties()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
6 2 1
fun addColumnDefinition()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
6 2 2
fun defineCompactStorage()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
6 2 0
fun debug()
in src/main/kotlin/software/aws/mcs/cql2cfn/util/Logger.kt
5 2 1
fun startDefiningPartitionKeyColumnNames()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
5 2 0
fun startDefiningClusteringOrder()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
5 2 0
fun info()
in src/main/kotlin/software/aws/mcs/cql2cfn/util/Logger.kt
3 1 1
fun addStaticColumnName()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
3 1 1
fun addPartitionKeyColumnName()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
3 1 1
fun addClusteringColumnName()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
3 1 1
fun addClusteringAscendingOrder()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
3 1 1
fun addClusteringDescendingOrder()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
3 1 1
override fun validate()
in src/main/kotlin/software/aws/mcs/cql2cfn/cql/Properties.kt
2 1 0