aws / aws-toolkit-jetbrains
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,686 units with 28,158 lines of code in units (33.6% of code).
    • 1 very long units (199 lines of code)
    • 18 long units (1,171 lines of code)
    • 290 medium size units (8,190 lines of code)
    • 666 small units (9,704 lines of code)
    • 1,711 very small units (8,894 lines of code)
<1% | 4% | 29% | 34% | 31%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
kt<1% | 3% | 29% | 34% | 30%
cs0% | 11% | 19% | 24% | 43%
java0% | 18% | 0% | 20% | 60%
kts0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
jetbrains-core<1% | 3% | 31% | 33% | 30%
jetbrains-rider0% | 18% | 18% | 30% | 33%
jetbrains-ultimate0% | 0% | 18% | 50% | 31%
core0% | 0% | 12% | 32% | 54%
detekt-rules0% | 0% | 35% | 41% | 22%
buildSrc0% | 0% | 23% | 47% | 28%
resources0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
functionFromElement()
in jetbrains-core/tst/software/aws/toolkits/jetbrains/services/lambda/sam/SamTemplateUtilsTest.kt
199 1 1
private static bool IsCustomDataType()
in jetbrains-rider/ReSharper.AWS/src/AWS.Psi/Lambda/LambdaFinder.cs
97 29 1
fun createDebugProcess()
in jetbrains-rider/src-213+/software/aws/toolkits/jetbrains/services/lambda/dotnet/DotnetDebugUtils.kt
95 6 4
fun createDebugProcess()
in jetbrains-rider/src-211-212/software/aws/toolkits/jetbrains/services/lambda/dotnet/DotnetDebugUtils.kt
95 6 4
override suspend fun handleMessages()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/cloudwatch/logs/CloudWatchActor.kt
74 8 0
override fun run()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/clouddebug/actions/PseCliAction.kt
74 6 1
public LambdaInputPanel()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/execution/LambdaInputPanel.java
67 8 1
override fun getState()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/execution/local/LocalLambdaRunConfiguration.kt
61 4 2
fun testPublish_withNamespace()
in jetbrains-core/tst/software/aws/toolkits/jetbrains/services/telemetry/DefaultTelemetryPublisherTest.kt
60 1 0
fun testPublish_withoutNamespace()
in jetbrains-core/tst/software/aws/toolkits/jetbrains/services/telemetry/DefaultTelemetryPublisherTest.kt
60 1 0
fun testEndToEnd()
in jetbrains-core/it/software/aws/toolkits/jetbrains/services/clouddebug/python/PythonDebugEndToEndTest.kt
59 2 0
fun forceUi()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/deploy/DeployServerlessApplicationDialog.kt
57 16 14
override fun updateStartupCommand()
in jetbrains-rider/src/software/aws/toolkits/jetbrains/services/clouddebug/DotNetStartupCommand.kt
57 6 4
override fun mutationStatusChanged()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/dynamic/DynamicResourceStateChangedNotificationHandler.kt
54 4 1
fun testEndToEnd()
in jetbrains-core/it/software/aws/toolkits/jetbrains/services/clouddebug/java/JavaDebugEndToEndTest.kt
54 1 0
override fun execute()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/clouddebug/execution/CloudDebugRunState.kt
53 4 2
override fun actionPerformed()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/actions/DeployServerlessApplicationAction.kt
52 7 1
fun createWorkflow()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/upload/CreateFunctionDialog.kt
51 1 0
fun canDownloadAndViewSchema()
in jetbrains-core/tst/software/aws/toolkits/jetbrains/services/schemas/SchemasViewerTest.kt
51 1 0
override fun execute()
in jetbrains-core/src/software/aws/toolkits/jetbrains/services/clouddebug/execution/steps/AttachDebuggers.kt
49 2 3