awslabs / smithy-swift
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 297 files with 13,539 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 11 medium size files (3,239 lines of codeclsfd_ftr_w_mp_ins)
    • 21 small files (2,842 lines of code)
    • 265 very small files (7,458 lines of code)
0% | 0% | 23% | 20% | 55%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
kt0% | 0% | 32% | 23% | 44%
swift0% | 0% | 7% | 17% | 75%
kts0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
smithy-swift-codegen/src0% | 0% | 32% | 23% | 44%
Packages/SmithyTestUtil0% | 0% | 42% | 18% | 38%
Packages/ClientRuntime0% | 0% | 0% | 18% | 81%
smithy-swift-codegen-test/expected0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
smithy-swift-codegen0% | 0% | 0% | 0% | 100%
Packages0% | 0% | 0% | 0% | 100%
buildSrc/src0% | 0% | 0% | 0% | 100%
smithy-swift-codegen-test0% | 0% | 0% | 0% | 100%
buildSrc0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
HttpBindingProtocolGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
386 7
MemberShapeEncodeFormURLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/formurl
359 5
MemberShapeEncodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
337 5
MemberShapeDecodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
324 4
MemberShapeDecodeGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/json
310 5
HttpRequestTestBase.swift
in Packages/SmithyTestUtil/Sources/RequestTestUtil
306 6
HttpProtocolUnitTestRequestGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
273 3
ShapeValueGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
262 6
MemberShapeEncodeGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/json
247 3
SymbolVisitor.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
231 17
HttpQueryItemMiddleware.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
204 4
HttpResponseHeaders.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/httpResponse
188 1
HttpProtocolTestGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
184 1
DocumentationConverter.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
176 5
SwiftWriter.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
171 12
CodegenVisitor.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
152 7
HttpHeaderMiddleware.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
152 3
StructureGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
151 1
SdkHttpRequest.swift
in Packages/ClientRuntime/Sources/Networking/Http
140 1
ExpectedSdkHttpRequest.swift
in Packages/SmithyTestUtil/Sources/RequestTestUtil
133 -
Headers.swift
in Packages/ClientRuntime/Sources/Networking/Http
128 4
CRTClientEngine.swift
in Packages/ClientRuntime/Sources/Networking/Http/CRT
125 1
HttpProtocolUnitTestResponseGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
125 8
ServiceGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
122 4
HttpUrlPathMiddleware.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
120 4
EnumGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
119 9
ReservedWords.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/lang
116 -
HttpContext.swift
in Packages/ClientRuntime/Sources/Networking/Http
113 -
HttpBodyMiddleware.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
113 3
SwiftSettings.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
110 3
Document.swift
in Packages/ClientRuntime/Sources/PrimitiveTypeExtensions
102 -
UnionDecodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
102 8
String+Extensions.swift
in Packages/ClientRuntime/Sources/PrimitiveTypeExtensions
98 7
HttpProtocolClientGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
98 1
SwiftDelegator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
93 6
ShapeExt.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/model
89 -
LogAgent.swift
in Packages/ClientRuntime/Sources/Logging
85 1
HttpProtocolServiceClient.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
85 2
HttpResponseBindingErrorInitGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/httpResponse
84 3
HttpStatusCode.swift
in Packages/ClientRuntime/Sources/Networking/Http
83 -
AddOperationShapes.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/model
83 1
StructEncodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
82 1
OperationStack.swift
in Packages/ClientRuntime/Sources/Middleware
81 -
StructDecodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
80 7
ClientRuntimeTypes.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
80 -
SDKRetryer.swift
in Packages/ClientRuntime/Sources/Retries
78 -
FormURLKeyedEncoding.swift
in Packages/ClientRuntime/Sources/Serialization/FormURL/Encoder
76 21
MiddlewareShapeUtils.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
76 12
ProtocolGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
76 2
build.gradle.kts
in smithy-swift-codegen
76 -
Files With Most Units (Top 20)
File# lines# units
FormURLKeyedEncoding.swift
in Packages/ClientRuntime/Sources/Serialization/FormURL/Encoder
76 21
FormURLUnkeyedEncoding.swift
in Packages/ClientRuntime/Sources/Serialization/FormURL/Encoder
72 20
FormURLSingleValueEncoding.swift
in Packages/ClientRuntime/Sources/Serialization/FormURL/Encoder
57 17
SymbolVisitor.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
231 17
ClientProperty.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
57 14
SwiftWriter.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
171 12
MiddlewareShapeUtils.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
76 12
EnumGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
119 9
SymbolBuilder.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/model
72 8
UnionDecodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
102 8
HttpProtocolUnitTestResponseGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
125 8
OrderedGroup.swift
in Packages/ClientRuntime/Sources/Middleware
69 7
String+Extensions.swift
in Packages/ClientRuntime/Sources/PrimitiveTypeExtensions
98 7
CodegenVisitor.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
152 7
StructDecodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
80 7
HttpBindingProtocolGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
386 7
HttpRequestTestBase.swift
in Packages/SmithyTestUtil/Sources/RequestTestUtil
306 6
SwiftDelegator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
93 6
OperationMiddlewareGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/middleware
60 6
HttpBindingResolver.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
44 6
Files With Long Lines (Top 20)

There are 83 files with lines longer than 120 characters. In total, there are 349 long lines.

File# lines# units# long lines
MemberShapeEncodeFormURLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/formurl
359 5 59
MemberShapeEncodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
337 5 57
MemberShapeDecodeXMLGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/xml
324 4 25
MemberShapeDecodeGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/json
310 5 14
HttpQueryItemMiddleware.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
204 4 12
HttpProtocolUnitTestRequestGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
273 3 12
HttpBindingProtocolGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
386 7 12
HttpResponseHeaders.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/httpResponse
188 1 10
MemberShapeEncodeGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/json
247 3 9
HttpHeaderMiddleware.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
152 3 8
HttpBodyMiddleware.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares/handlers
113 3 6
CodegenVisitor.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
152 7 5
HttpProtocolClientGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
98 1 5
ServiceGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
122 4 5
SymbolVisitor.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
231 17 4
ClientProperty.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
57 14 4
HttpResponseBindingErrorNarrowGenerator.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/httpResponse
65 1 4
SwiftWriter.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen
171 12 3
ServiceConfig.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration
39 3 3
OperationInputBodyMiddleware.kt
in smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/middlewares
37 1 3