aws-cloudformation / cloudformation-cli
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 55 files with 4,766 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,379 lines of code)
    • 4 medium size files (1,016 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (970 lines of code)
    • 42 very small files (1,401 lines of code)
0% | 28% | 21% | 20% | 29%
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% | 29% | 21% | 20% | 27%
yml0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/rpdk/core0% | 35% | 26% | 19% | 19%
src/rpdk/core/contract0% | 45% | 14% | 10% | 30%
src/rpdk/core/fragment0% | 0% | 74% | 0% | 25%
src/rpdk/core/jsonutils0% | 0% | 0% | 79% | 20%
ROOT0% | 0% | 0% | 0% | 100%
src/rpdk/core/resource0% | 0% | 0% | 0% | 100%
src/rpdk/core/templates0% | 0% | 0% | 0% | 100%
src/rpdk/core/utils0% | 0% | 0% | 0% | 100%
src/rpdk/core/data0% | 0% | 0% | 0% | 100%
src/rpdk/core/module0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
project.py
in src/rpdk/core
748 46
resource_client.py
in src/rpdk/core/contract
631 46
data_loaders.py
in src/rpdk/core
305 10
test.py
in src/rpdk/core
254 13
generator.py
in src/rpdk/core/fragment
252 24
resource_generator.py
in src/rpdk/core/contract
205 16
utils.py
in src/rpdk/core/jsonutils
183 13
upload.py
in src/rpdk/core
153 8
handler_commons.py
in src/rpdk/core/contract/suite
141 11
init.py
in src/rpdk/core
140 10
resolver.py
in src/rpdk/core/jsonutils
131 15
flattener.py
in src/rpdk/core/jsonutils
112 8
cli.py
in src/rpdk/core
110 3
contract_asserts.py
in src/rpdk/core/contract/suite
97 11
invoke.py
in src/rpdk/core
92 3
init_resource.py
in src/rpdk/core/resource
81 6
handler_update.py
in src/rpdk/core/contract/suite
79 4
boto_helpers.py
in src/rpdk/core
79 4
handler_delete.py
in src/rpdk/core/contract/suite
71 6
handler_create.py
in src/rpdk/core/contract/suite
69 6
inliner.py
in src/rpdk/core/jsonutils
68 6
setup.py
in root
65 2
init_utils.py
in src/rpdk/core/utils
53 5
module_fragment_reader.py
in src/rpdk/core/fragment
45 5
build_image.py
in src/rpdk/core
42 2
plugin_base.py
in src/rpdk/core
42 5
resource-role.yml
in src/rpdk/core/templates
39 -
lint_warning_printer.py
in src/rpdk/core/fragment
39 2
submit.py
in src/rpdk/core
39 2
init_module.py
in src/rpdk/core/module
37 3
logging.yaml
in src/rpdk/core/data
37 -
filters.py
in src/rpdk/core
35 9
type_configuration.py
in src/rpdk/core/contract
34 1
cfg
setup.cfg
in root
34 -
interface.py
in src/rpdk/core/contract
32 1
exceptions.py
in src/rpdk/core
32 -
template.yml
in src/rpdk/core/templates
23 -
pointer.py
in src/rpdk/core/jsonutils
22 5
handler_update_invalid.py
in src/rpdk/core/contract/suite
20 1
plugin_registry.py
in src/rpdk/core
19 3
renamer.py
in src/rpdk/core/jsonutils
18 3
generate.py
in src/rpdk/core
12 2
handler_misc.py
in src/rpdk/core/contract/suite
11 1
validate.py
in src/rpdk/core
9 2
contract_plugin.py
in src/rpdk/core/contract
7 2
in
MANIFEST.in
in root
5 -
managed-upload-infrastructure.yaml
in src/rpdk/core/data
4 -
__init__.py
in src/rpdk/core
3 -
__init__.py
in src/rpdk/core/module
1 -
__init__.py
in src/rpdk/core/contract/suite
1 -
Files With Most Units (Top 20)
File# lines# units
resource_client.py
in src/rpdk/core/contract
631 46
project.py
in src/rpdk/core
748 46
generator.py
in src/rpdk/core/fragment
252 24
resource_generator.py
in src/rpdk/core/contract
205 16
resolver.py
in src/rpdk/core/jsonutils
131 15
utils.py
in src/rpdk/core/jsonutils
183 13
test.py
in src/rpdk/core
254 13
handler_commons.py
in src/rpdk/core/contract/suite
141 11
contract_asserts.py
in src/rpdk/core/contract/suite
97 11
data_loaders.py
in src/rpdk/core
305 10
init.py
in src/rpdk/core
140 10
filters.py
in src/rpdk/core
35 9
flattener.py
in src/rpdk/core/jsonutils
112 8
upload.py
in src/rpdk/core
153 8
handler_create.py
in src/rpdk/core/contract/suite
69 6
handler_delete.py
in src/rpdk/core/contract/suite
71 6
inliner.py
in src/rpdk/core/jsonutils
68 6
init_resource.py
in src/rpdk/core/resource
81 6
module_fragment_reader.py
in src/rpdk/core/fragment
45 5
pointer.py
in src/rpdk/core/jsonutils
22 5
Files With Long Lines (Top 3)

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

File# lines# units# long lines
data_loaders.py
in src/rpdk/core
305 10 2
resource-role.yml
in src/rpdk/core/templates
39 - 1
cfg
setup.cfg
in root
34 - 1