awslabs / aws-mobile-appsync-sdk-ios
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 176 files with 23,190 lines of code.
    • 2 very long files (9,207 lines of code)
    • 1 long files (984 lines of code)
    • 14 medium size files (4,159 lines of codeclsfd_ftr_w_mp_ins)
    • 31 small files (4,658 lines of code)
    • 128 very small files (4,182 lines of code)
39% | 4% | 17% | 20% | 18%
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
swift42% | 0% | 19% | 20% | 17%
yaml0% | 100% | 0% | 0% | 0%
graphql0% | 0% | 0% | 34% | 65%
h0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
StarWarsAPI94% | 0% | 0% | 0% | 5%
AWSAppSyncTestCommon81% | 0% | 0% | 9% | 8%
AWSAppSyncIntegrationTests/ConsoleResources0% | 83% | 0% | 15% | 1%
ApolloTests0% | 0% | 41% | 44% | 14%
AWSAppSyncIntegrationTests0% | 0% | 70% | 24% | 4%
AWSAppSyncClient0% | 0% | 54% | 13% | 31%
AWSAppSyncClient/Internal0% | 0% | 18% | 33% | 47%
AWSAppSyncClient/Apollo0% | 0% | 10% | 41% | 48%
AWSAppSyncTestApp0% | 0% | 0% | 91% | 8%
AWSAppSyncIntegrationTests/Helpers0% | 0% | 0% | 100% | 0%
AWSAppSyncTestCommon/MockConnectionProvider0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
AWSAppSyncTestCommon/MockAuthProvider0% | 0% | 0% | 0% | 100%
AWSAppSyncTestCommon/MockSubscriptionFactory0% | 0% | 0% | 0% | 100%
AWSAppSyncTestHostApp0% | 0% | 0% | 0% | 100%
AWSAppSyncTestAppUITests0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
API.swift
in StarWarsAPI
5371 -
AppSyncTestAPI.swift
in AWSAppSyncTestCommon
3836 -
appsync-integrationtests-cloudformation.yaml
in AWSAppSyncIntegrationTests/ConsoleResources
984 -
AWSAppSyncAPIKeyAuthTests.swift
in AWSAppSyncIntegrationTests
485 8
AppSyncSubscriptionWithSync.swift
in AWSAppSyncClient/Internal
409 1
AWSAppSyncHTTPNetworkTransport.swift
in AWSAppSyncClient
385 6
AWSAppSyncClientConfiguration.swift
in AWSAppSyncClient
358 -
ParseQueryResponseTests.swift
in ApolloTests
296 21
SubscriptionTests.swift
in AWSAppSyncIntegrationTests
295 9
FragmentConstructionAndConversionTests.swift
in ApolloTests
285 44
AWSAppSyncClient.swift
in AWSAppSyncClient
262 1
WatchQueryTests.swift
in ApolloTests
259 5
AuthProviderTests.swift
in AWSAppSyncIntegrationTests
255 22
AWSAppSyncMultiAuthClientsTests.swift
in AWSAppSyncIntegrationTests
221 4
Promise.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
219 -
FetchQueryTests.swift
in ApolloTests
216 7
ReadWriteFromStoreTests.swift
in ApolloTests
214 10
PromiseTests.swift
in ApolloTests
190 21
ReadFieldValueTests.swift
in ApolloTests
190 21
AppSyncClientTestHelper.swift
in AWSAppSyncTestCommon
190 -
ApolloStore.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
187 8
FetchQueryTestsComplex.swift
in ApolloTests
185 20
ViewController.swift
in AWSAppSyncTestApp
184 7
NormalizeQueryResults.swift
in ApolloTests
182 11
appsync-console-operations.graphql
in AWSAppSyncIntegrationTests/ConsoleResources
180 -
GraphQLExecutor.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
180 2
AWSAppSyncCognitoAuthTests.swift
in AWSAppSyncIntegrationTests
179 5
LoadQueryFromStoreTests.swift
in ApolloTests
175 8
FetchQueryTestsSimple.swift
in ApolloTests
168 20
AppSyncClientTestConfiguration.swift
in AWSAppSyncTestCommon
161 2
ResultOrPromiseTests.swift
in ApolloTests
156 19
ApolloClient.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
151 4
AWSAppSyncSubscriptionWatcher.swift
in AWSAppSyncClient
146 3
ResultOrPromise.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
137 1
SubscriptionStressTestHelper.swift
in AWSAppSyncIntegrationTests/Helpers
135 2
CachePersistenceTests.swift
in ApolloTests
132 3
MutationQueuePerformanceTests.swift
in AWSAppSyncIntegrationTests
132 18
AWSAppSyncLambdaAuthTests.swift
in AWSAppSyncIntegrationTests
131 5
CachedMutationOperation.swift
in AWSAppSyncClient/Internal
130 1
JSONStandardTypeConversions.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
130 -
IAMAuthInterceptor.swift
in AWSAppSyncClient/Internal/AuthInterceptor
127 3
SessionMutationOperation.swift
in AWSAppSyncClient/Internal
126 -
AWSMutationCache.swift
in AWSAppSyncClient/Internal
125 -
AWSPerformMutationQueue.swift
in AWSAppSyncClient/Internal
124 2
MockAWSNetworkTransport.swift
in AWSAppSyncTestCommon
114 3
NetworkReachabilityNotifier.swift
in AWSAppSyncClient/Internal
107 2
GraphQLSelectionSet.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
103 2
AWSAppSyncCache.swift
in AWSAppSyncClient
101 -
AWSSQLiteNormalizedCache.swift
in AWSAppSyncClient/Internal
100 4
AWSAppSyncRetryHandler.swift
in AWSAppSyncClient/Internal
99 3
Files With Most Units (Top 20)
File# lines# units
FragmentConstructionAndConversionTests.swift
in ApolloTests
285 44
AuthProviderTests.swift
in AWSAppSyncIntegrationTests
255 22
PromiseTests.swift
in ApolloTests
190 21
ReadFieldValueTests.swift
in ApolloTests
190 21
ParseQueryResponseTests.swift
in ApolloTests
296 21
FetchQueryTestsSimple.swift
in ApolloTests
168 20
FetchQueryTestsComplex.swift
in ApolloTests
185 20
ResultOrPromiseTests.swift
in ApolloTests
156 19
MutationQueuePerformanceTests.swift
in AWSAppSyncIntegrationTests
132 18
MockAuthProviders.swift
in AWSAppSyncTestCommon
76 17
InputValueEncodingTests.swift
in ApolloTests
74 15
NormalizeQueryResults.swift
in ApolloTests
182 11
CacheKeyForFieldTests.swift
in ApolloTests
55 10
ReadWriteFromStoreTests.swift
in ApolloTests
214 10
Locking.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
55 10
SubscriptionTests.swift
in AWSAppSyncIntegrationTests
295 9
LoadQueryFromStoreTests.swift
in ApolloTests
175 8
AWSAppSyncAPIKeyAuthTests.swift
in AWSAppSyncIntegrationTests
485 8
ApolloStore.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
187 8
AWSS3ObjectProtocol.swift
in AWSAppSyncClient
71 8
Files With Long Lines (Top 20)

There are 66 files with lines longer than 120 characters. In total, there are 532 long lines.

File# lines# units# long lines
API.swift
in StarWarsAPI
5371 - 99
AppSyncTestAPI.swift
in AWSAppSyncTestCommon
3836 - 97
AWSAppSyncClient.swift
in AWSAppSyncClient
262 1 42
AWSAppSyncAPIKeyAuthTests.swift
in AWSAppSyncIntegrationTests
485 8 25
AWSAppSyncMultiAuthClientsTests.swift
in AWSAppSyncIntegrationTests
221 4 16
ViewController.swift
in AWSAppSyncTestApp
184 7 16
SubscriptionTests.swift
in AWSAppSyncIntegrationTests
295 9 14
GraphQLResultAccumulator.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
84 6 13
AWSAppSyncClientConfiguration.swift
in AWSAppSyncClient
358 - 13
appsync-integrationtests-cloudformation.yaml
in AWSAppSyncIntegrationTests/ConsoleResources
984 - 12
ApolloStore.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
187 8 12
ApolloClient.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
151 4 10
AWSAppSyncHTTPNetworkTransport.swift
in AWSAppSyncClient
385 6 10
AppSyncClientTestHelper.swift
in AWSAppSyncTestCommon
190 - 9
AppSyncSubscriptionWithSync.swift
in AWSAppSyncClient/Internal
409 1 8
GraphQLExecutor.swift
in AWSAppSyncClient/Apollo/Sources/Apollo
180 2 8
AWSAppSyncLambdaAuthTests.swift
in AWSAppSyncIntegrationTests
131 5 7
SubscriptionStressTestHelper.swift
in AWSAppSyncIntegrationTests/Helpers
135 2 7
AppSyncLogWrapper.swift
in AWSAppSyncClient/Internal
30 - 6
AWSAppSyncCache.swift
in AWSAppSyncClient
101 - 6