aws / serverless-application-model
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 273 files with 16,378 lines of code.
    • 0 very long files (0 lines of code)
    • 4 long files (3,426 lines of code)
    • 14 medium size files (3,921 lines of codeclsfd_ftr_w_mp_ins)
    • 20 small files (2,695 lines of code)
    • 235 very small files (6,336 lines of code)
0% | 20% | 23% | 16% | 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
py0% | 32% | 32% | 10% | 24%
yaml0% | 0% | 7% | 27% | 64%
yml0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
samtranslator/model0% | 44% | 34% | 6% | 14%
samtranslator/swagger0% | 99% | 0% | 0% | <1%
samtranslator/plugins0% | 0% | 45% | 19% | 35%
integration/resources0% | 0% | 8% | 26% | 65%
samtranslator/open_api0% | 0% | 99% | 0% | <1%
integration/helpers0% | 0% | 38% | 14% | 47%
samtranslator/utils0% | 0% | 97% | 0% | 2%
samtranslator/translator0% | 0% | 0% | 58% | 41%
samtranslator/intrinsics0% | 0% | 0% | 68% | 31%
samtranslator/feature_toggle0% | 0% | 0% | 75% | 24%
integration/config0% | 0% | 0% | 81% | 18%
samtranslator/metrics0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
integration0% | 0% | 0% | 0% | 100%
samtranslator/sdk0% | 0% | 0% | 0% | 100%
samtranslator/policy_template_processor0% | 0% | 0% | 0% | 100%
samtranslator/validator0% | 0% | 0% | 0% | 100%
integration/setup0% | 0% | 0% | 0% | 100%
samtranslator/parser0% | 0% | 0% | 0% | 100%
samtranslator0% | 0% | 0% | 0% | 100%
samtranslator/public0% | 0% | 0% | 0% | 100%
samtranslator/policy_templates_data0% | 0% | 0% | 0% | 100%
integration/single0% | 0% | 0% | 0% | 100%
integration/combination0% | 0% | 0% | 0% | 100%
integration/metrics0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sam_resources.py
in samtranslator/model
983 36
push.py
in samtranslator/model/eventsources
843 34
api_generator.py
in samtranslator/model/api
808 30
swagger.py
in samtranslator/swagger
792 53
http_api_generator.py
in samtranslator/model/api
450 17
pull.py
in samtranslator/model/eventsources
352 23
open_api.py
in samtranslator/open_api
351 32
deployer.py
in integration/helpers/deployer
343 15
apigateway.py
in samtranslator/model
339 22
py27hash_fix.py
in samtranslator/utils
300 41
events.py
in samtranslator/model/stepfunctions
277 10
implicit_api_plugin.py
in samtranslator/plugins/api
227 18
api_with_authorizers_max_openapi.yaml
in integration/resources/templates/combination
226 -
serverless_app_plugin.py
in samtranslator/plugins/application
220 16
function_with_implicit_api_and_conditions.yaml
in integration/resources/templates/combination
218 -
generators.py
in samtranslator/model/stepfunctions
209 10
apigatewayv2.py
in samtranslator/model
206 9
__init__.py
in samtranslator/model
203 25
globals.py
in samtranslator/plugins/globals
190 15
translator.py
in samtranslator/translator
185 8
actions.py
in samtranslator/intrinsics
184 21
api_with_authorizers_max.yaml
in integration/resources/templates/combination
180 -
function_with_mq.yaml
in integration/resources/templates/combination
167 -
deployment_preference_collection.py
in samtranslator/model/preferences
151 17
api_with_usage_plan.yaml
in integration/resources/templates/combination
145 -
all_policy_templates.yaml
in integration/resources/templates/combination
143 -
function_with_mq_using_autogen_role.yaml
in integration/resources/templates/combination
127 -
client_provider.py
in integration/helpers
126 18
function_with_all_event_types.yaml
in integration/resources/templates/combination
123 -
api_with_authorizers_min.yaml
in integration/resources/templates/combination
122 -
function_with_all_event_types_condition_false.yaml
in integration/resources/templates/combination
114 -
iam.py
in samtranslator/model
113 10
intrinsics_serverless_api.yaml
in integration/resources/templates/combination
106 -
function_with_deployment_alarms_and_hooks.yaml
in integration/resources/templates/combination
105 -
feature_toggle.py
in samtranslator/feature_toggle
104 11
region_service_exclusion.yaml
in integration/config
104 -
lambda_.py
in samtranslator/model
103 -
intrinsics_serverless_function.yaml
in integration/resources/templates/combination
103 -
conftest.py
in integration
99 11
implicit_http_api_plugin.py
in samtranslator/plugins/api
95 9
basic_function_event_destinations.yaml
in integration/resources/templates/single
95 -
metrics.py
in samtranslator/metrics
85 16
validator.py
in samtranslator/validator
84 9
resource_policies.py
in samtranslator/model
84 8
function_policies.py
in samtranslator/model
84 8
function_with_alias_and_event_sources.yaml
in integration/resources/templates/combination
84 -
http_api_with_auth.yaml
in integration/resources/templates/combination
81 -
intrinsics.py
in samtranslator/model
79 18
function_with_kinesis_intrinsics.yaml
in integration/resources/templates/combination
75 -
implicit_rest_api_plugin.py
in samtranslator/plugins/api
73 8
Files With Most Units (Top 20)
File# lines# units
swagger.py
in samtranslator/swagger
792 53
py27hash_fix.py
in samtranslator/utils
300 41
sam_resources.py
in samtranslator/model
983 36
push.py
in samtranslator/model/eventsources
843 34
open_api.py
in samtranslator/open_api
351 32
api_generator.py
in samtranslator/model/api
808 30
__init__.py
in samtranslator/model
203 25
pull.py
in samtranslator/model/eventsources
352 23
apigateway.py
in samtranslator/model
339 22
actions.py
in samtranslator/intrinsics
184 21
implicit_api_plugin.py
in samtranslator/plugins/api
227 18
intrinsics.py
in samtranslator/model
79 18
client_provider.py
in integration/helpers
126 18
http_api_generator.py
in samtranslator/model/api
450 17
deployment_preference_collection.py
in samtranslator/model/preferences
151 17
serverless_app_plugin.py
in samtranslator/plugins/application
220 16
metrics.py
in samtranslator/metrics
85 16
globals.py
in samtranslator/plugins/globals
190 15
deployer.py
in integration/helpers/deployer
343 15
exceptions.py
in samtranslator/model
51 13
Files With Long Lines (Top 7)

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

File# lines# units# long lines
swagger.py
in samtranslator/swagger
792 53 3
pull.py
in samtranslator/model/eventsources
352 23 3
http_api_generator.py
in samtranslator/model/api
450 17 2
push.py
in samtranslator/model/eventsources
843 34 2
basic_function_event_destinations.yaml
in integration/resources/templates/single
95 - 2
all_policy_templates.yaml
in integration/resources/templates/combination
143 - 1
api_with_binary_media_types_with_definition_body_openapi.yaml
in integration/resources/templates/combination
71 - 1