awslabs / fhir-works-on-aws-routing
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 50 files with 3,183 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (789 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (872 lines of code)
    • 41 very small files (1,522 lines of code)
0% | 0% | 24% | 27% | 47%
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
ts0% | 0% | 24% | 27% | 47%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/router/bundle0% | 0% | 51% | 45% | 2%
src/router/routes0% | 0% | 35% | 33% | 30%
src/operationDefinitions/USCoreDocRef0% | 0% | 87% | 0% | 12%
src0% | 0% | 0% | 61% | 38%
src/router/handlers0% | 0% | 0% | 50% | 50%
src/router/metadata0% | 0% | 0% | 0% | 100%
sampleData0% | 0% | 0% | 0% | 100%
src/router/validation0% | 0% | 0% | 0% | 100%
src/operationDefinitions0% | 0% | 0% | 0% | 100%
src/router/middlewares0% | 0% | 0% | 0% | 100%
src/implementationGuides0% | 0% | 0% | 0% | 100%
src/router0% | 0% | 0% | 0% | 100%
src/registry0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
bundleParser.ts
in src/router/bundle
328 9
genericResourceRoute.ts
in src/router/routes
250 2
parseParams.ts
in src/operationDefinitions/USCoreDocRef
211 -
app.ts
in src
184 2
bundleHandler.ts
in src/router/bundle
173 2
resourceHandler.ts
in src/router/handlers
163 10
rootRoute.ts
in src/router/routes
129 1
bundleGenerator.ts
in src/router/bundle
115 5
exportRoute.ts
in src/router/routes
108 3
cap.rest.resource.template.ts
in src/router/metadata
89 4
errorHandling.ts
in src/router/routes
83 -
configHandler.ts
in src
83 1
exportRouteHelper.ts
in src/router/routes
76 5
index.ts
in src/implementationGuides
76 3
r4FhirConfigNoGeneric.ts
in sampleData
74 -
cap.rest.security.template.ts
in src/router/metadata
72 1
r4FhirConfigWithExclusions.ts
in sampleData
65 -
metadataHandler.ts
in src/router/metadata
64 2
rootHandler.ts
in src/router/handlers
58 4
setTenantId.ts
in src/router/middlewares
57 1
stu3FhirConfigWithExclusions.ts
in sampleData
57 -
exportHandler.ts
in src/router/handlers
55 5
OperationDefinitionRegistry.ts
in src/operationDefinitions
52 1
r4FhirConfigGeneric.ts
in sampleData
49 -
hapiFhirLambdaValidator.ts
in src/router/validation
48 2
cap.rest.template.ts
in src/router/metadata
46 2
operationsGenerator.ts
in src/router
41 2
jsonSchemaValidator.ts
in src/router/validation
38 2
CrudHandlerInterface.ts
in src/router/handlers
34 -
metadataRoute.ts
in src/router/routes
33 1
index.ts
in src/registry
33 1
cap.template.ts
in src/router/metadata
30 1
convertDocRefParamsToSearchParams.ts
in src/operationDefinitions/USCoreDocRef
30 -
wellKnownUriRoute.ts
in src/router/routes
18 2
types.ts
in src/operationDefinitions
18 -
bundleHandlerInterface.ts
in src/router/bundle
17 -
index.ts
in src/operationDefinitions
17 -
AWS.ts
in src
16 -
codecov.yml
in root
16 -
setServerUrl.ts
in src/router/middlewares
15 1
wellKnownUriHandler.ts
in src/router/handlers
14 2
setContentType.ts
in src/router/middlewares
11 -
routeHelper.ts
in src/router/routes
8 -
loggerBuilder.ts
in src
7 1
ResourceCapabilityInterface.ts
in src/registry
7 -
validationUtilities.ts
in src/router/validation
6 1
offlineEnvVariables.ts
in src
5 -
utils.ts
in src/router/handlers
2 -
index.ts
in src
1 -
constants.ts
in src
1 -
Files With Most Units (Top 20)
File# lines# units
resourceHandler.ts
in src/router/handlers
163 10
bundleParser.ts
in src/router/bundle
328 9
bundleGenerator.ts
in src/router/bundle
115 5
exportHandler.ts
in src/router/handlers
55 5
exportRouteHelper.ts
in src/router/routes
76 5
rootHandler.ts
in src/router/handlers
58 4
cap.rest.resource.template.ts
in src/router/metadata
89 4
exportRoute.ts
in src/router/routes
108 3
index.ts
in src/implementationGuides
76 3
bundleHandler.ts
in src/router/bundle
173 2
jsonSchemaValidator.ts
in src/router/validation
38 2
hapiFhirLambdaValidator.ts
in src/router/validation
48 2
operationsGenerator.ts
in src/router
41 2
wellKnownUriHandler.ts
in src/router/handlers
14 2
wellKnownUriRoute.ts
in src/router/routes
18 2
genericResourceRoute.ts
in src/router/routes
250 2
cap.rest.template.ts
in src/router/metadata
46 2
metadataHandler.ts
in src/router/metadata
64 2
app.ts
in src
184 2
loggerBuilder.ts
in src
7 1
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 12 long lines.

File# lines# units# long lines
bundleParser.ts
in src/router/bundle
328 9 3
operationsGenerator.ts
in src/router
41 2 2
genericResourceRoute.ts
in src/router/routes
250 2 2
cap.rest.template.ts
in src/router/metadata
46 2 2
bundleHandler.ts
in src/router/bundle
173 2 1
exportRouteHelper.ts
in src/router/routes
76 5 1
parseParams.ts
in src/operationDefinitions/USCoreDocRef
211 - 1