aws-solutions / serverless-bot-framework
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 40 files with 2,984 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (555 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,273 lines of code)
    • 29 very small files (1,156 lines of code)
0% | 0% | 18% | 42% | 38%
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% | 46% | 0% | 53%
py0% | 0% | 0% | 74% | 25%
js0% | 0% | 0% | 45% | 54%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/infrastructure/lib0% | 0% | 46% | 0% | 53%
source/services/lex-bot/order_pizza0% | 0% | 0% | 99% | <1%
source/services/lex-bot/book_appointment0% | 0% | 0% | 99% | <1%
source/services/lex-bot/leave_feedback0% | 0% | 0% | 99% | <1%
source/services/lex-bot0% | 0% | 0% | 100% | 0%
source/services/webclient-setup0% | 0% | 0% | 100% | 0%
source/services/core0% | 0% | 0% | 88% | 11%
source/services/lex-bot/other_intents0% | 0% | 0% | 0% | 100%
source/services/lex-bot/weather_forecast0% | 0% | 0% | 0% | 100%
deployment/cdk-solution-helper0% | 0% | 0% | 0% | 100%
source/services/lex-bot/shared0% | 0% | 0% | 0% | 100%
source/services/solution-helper0% | 0% | 0% | 0% | 100%
source/services/polly-service0% | 0% | 0% | 0% | 100%
source/infrastructure0% | 0% | 0% | 0% | 100%
Longest Files (Top 40)
File# lines# units
serverless-bot-framework-stack.ts
in source/infrastructure/lib
307 -
cognito-api-lambdas-construct.ts
in source/infrastructure/lib
248 6
order_helpers.py
in source/services/lex-bot/order_pizza
191 3
appointment_helpers.py
in source/services/lex-bot/book_appointment
160 7
intent.py
in source/services/lex-bot/book_appointment
159 5
lambda_function.py
in source/services/lex-bot
158 15
intent.py
in source/services/lex-bot/order_pizza
136 5
feedback_helpers.py
in source/services/lex-bot/leave_feedback
130 3
intent.py
in source/services/lex-bot/leave_feedback
127 5
lambda_function.py
in source/services/webclient-setup
107 6
index.js
in source/services/core
105 10
custom-resource-lex-bot.ts
in source/infrastructure/lib
95 3
web-client-custom-resource-construct.ts
in source/infrastructure/lib
77 1
help_intent.py
in source/services/lex-bot/other_intents
76 3
intent.py
in source/services/lex-bot/weather_forecast
73 4
orderpizza-dynampdb-tables-construct.ts
in source/infrastructure/lib
72 2
solution-helper-construct.ts
in source/infrastructure/lib
70 2
name_intent.py
in source/services/lex-bot/other_intents
68 3
write-apikey-custom-resource-construct.ts
in source/infrastructure/lib
68 -
lexlambda-dynamodb-table-construct.ts
in source/infrastructure/lib
67 2
weather_helpers.py
in source/services/lex-bot/weather_forecast
66 3
index.js
in deployment/cdk-solution-helper
66 -
weather-forecast-lambda-ssm-construct.ts
in source/infrastructure/lib
53 2
lambda_function.py
in source/services/solution-helper
47 3
lambda-polly-construct.ts
in source/infrastructure/lib
43 2
corelambda-construct.ts
in source/infrastructure/lib
43 2
cloudfront-static-website-construct.ts
in source/infrastructure/lib
26 4
cfn-nag-helper.ts
in source/infrastructure/lib
23 1
logger.py
in source/services/lex-bot/shared
21 2
index.js
in source/services/polly-service
21 -
helpers.py
in source/services/lex-bot/shared
20 2
client.py
in source/services/lex-bot/shared
17 2
jest.config.js
in source/services/polly-service
14 -
jest.config.js
in source/services/core
14 -
jest.config.js
in source/infrastructure
11 -
__init__.py
in source/services/lex-bot/order_pizza
1 -
__init__.py
in source/services/lex-bot/book_appointment
1 -
__init__.py
in source/services/lex-bot/leave_feedback
1 -
__init__.py
in source/services/lex-bot/shared
1 -
__init__.py
in source/services/lex-bot/weather_forecast
1 -
Files With Most Units (Top 20)
File# lines# units
lambda_function.py
in source/services/lex-bot
158 15
index.js
in source/services/core
105 10
appointment_helpers.py
in source/services/lex-bot/book_appointment
160 7
lambda_function.py
in source/services/webclient-setup
107 6
cognito-api-lambdas-construct.ts
in source/infrastructure/lib
248 6
intent.py
in source/services/lex-bot/order_pizza
136 5
intent.py
in source/services/lex-bot/book_appointment
159 5
intent.py
in source/services/lex-bot/leave_feedback
127 5
intent.py
in source/services/lex-bot/weather_forecast
73 4
cloudfront-static-website-construct.ts
in source/infrastructure/lib
26 4
lambda_function.py
in source/services/solution-helper
47 3
order_helpers.py
in source/services/lex-bot/order_pizza
191 3
feedback_helpers.py
in source/services/lex-bot/leave_feedback
130 3
weather_helpers.py
in source/services/lex-bot/weather_forecast
66 3
name_intent.py
in source/services/lex-bot/other_intents
68 3
help_intent.py
in source/services/lex-bot/other_intents
76 3
custom-resource-lex-bot.ts
in source/infrastructure/lib
95 3
logger.py
in source/services/lex-bot/shared
21 2
helpers.py
in source/services/lex-bot/shared
20 2
client.py
in source/services/lex-bot/shared
17 2
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 11 long lines.

File# lines# units# long lines
help_intent.py
in source/services/lex-bot/other_intents
76 3 5
serverless-bot-framework-stack.ts
in source/infrastructure/lib
307 - 3
cognito-api-lambdas-construct.ts
in source/infrastructure/lib
248 6 2
index.js
in source/services/core
105 10 1