aws-cloudformation / cloudformation-guard
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 42 files with 6,859 lines of code.
    • 2 very long files (2,239 lines of code)
    • 2 long files (1,152 lines of code)
    • 3 medium size files (809 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,691 lines of code)
    • 23 very small files (968 lines of code)
32% | 16% | 11% | 24% | 14%
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
rs38% | 19% | 13% | 22% | 6%
yaml0% | 0% | 0% | 41% | 58%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
guard/src38% | 19% | 13% | 22% | 5%
guard-examples/security-policies0% | 0% | 0% | 46% | 53%
guard/assets0% | 0% | 0% | 100% | 0%
guard-examples/encryption0% | 0% | 0% | 72% | 27%
guard-examples/deployment-safety0% | 0% | 0% | 0% | 100%
guard-examples/cross-account0% | 0% | 0% | 0% | 100%
guard-examples/infrastructure-related0% | 0% | 0% | 0% | 100%
guard-examples/network-reachability-analysis0% | 0% | 0% | 0% | 100%
guard-lambda/src0% | 0% | 0% | 0% | 100%
guard0% | 0% | 0% | 0% | 100%
guard-lambda0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 42)
File# lines# units
parser.rs
in guard/src/rules
1171 74
evaluate.rs
in guard/src/rules
1068 33
path_value.rs
in guard/src/rules
632 17
validate.rs
in guard/src/commands
520 14
parser.rs
in guard/src/migrate
328 11
values.rs
in guard/src/rules
272 11
common.rs
in guard/src/commands/validate
209 3
exprs.rs
in guard/src/rules
193 2
test.rs
in guard/src/commands
175 4
cfn_reporter.rs
in guard/src/commands/validate
158 2
generic_summary.rs
in guard/src/commands/validate
149 5
errors.rs
in guard/src/rules
145 11
apigateway-restapi-tests.yaml
in guard-examples/security-policies
138 -
migrate.rs
in guard/src/commands
135 3
cfn-lambda.yaml
in guard/assets
135 -
rulegen.rs
in guard/src/commands
134 5
dynamodb-table-sse-tests.yaml
in guard-examples/encryption
116 -
files.rs
in guard/src/commands
107 1
tracker.rs
in guard/src/commands
106 6
mod.rs
in guard/src/rules
92 4
ecs-taskdef-tests.yaml
in guard-examples/deployment-safety
91 -
sns-cross-account-tests.yaml
in guard-examples/cross-account
84 -
elb-listener-tests.yaml
in guard-examples/security-policies
79 -
ec2-secgroup-inbound-outbound-access-tests.yaml
in guard-examples/security-policies
79 -
check-tags-present-tests.yaml
in guard-examples/infrastructure-related
62 -
parse_tree.rs
in guard/src/commands
58 3
ec2-instance-eip-tests.yaml
in guard-examples/deployment-safety
56 -
redshift-clustersubnetgroup-tests.yaml
in guard-examples/network-reachability-analysis
51 -
summary_table.rs
in guard/src/commands/validate
45 1
s3-bucket-sse-tests.yaml
in guard-examples/encryption
44 -
main.rs
in guard-lambda/src
39 -
aws_meta_appender.rs
in guard/src/commands
37 2
Cargo.toml
in guard
37 -
helper.rs
in guard/src/commands
34 -
Cargo.toml
in guard-lambda
18 -
common_test_helpers.rs
in guard/src/commands
17 4
mod.rs
in guard/src/commands
14 -
lib.rs
in guard/src
10 -
main.rs
in guard/src
10 -
command.rs
in guard/src
5 -
Cargo.toml
in root
5 -
mod.rs
in guard/src/migrate
1 -
Files With Most Units (Top 20)
File# lines# units
parser.rs
in guard/src/rules
1171 74
evaluate.rs
in guard/src/rules
1068 33
path_value.rs
in guard/src/rules
632 17
validate.rs
in guard/src/commands
520 14
parser.rs
in guard/src/migrate
328 11
errors.rs
in guard/src/rules
145 11
values.rs
in guard/src/rules
272 11
tracker.rs
in guard/src/commands
106 6
generic_summary.rs
in guard/src/commands/validate
149 5
rulegen.rs
in guard/src/commands
134 5
mod.rs
in guard/src/rules
92 4
common_test_helpers.rs
in guard/src/commands
17 4
test.rs
in guard/src/commands
175 4
migrate.rs
in guard/src/commands
135 3
parse_tree.rs
in guard/src/commands
58 3
common.rs
in guard/src/commands/validate
209 3
exprs.rs
in guard/src/rules
193 2
cfn_reporter.rs
in guard/src/commands/validate
158 2
aws_meta_appender.rs
in guard/src/commands
37 2
summary_table.rs
in guard/src/commands/validate
45 1
Files With Long Lines (Top 16)

There are 16 files with lines longer than 120 characters. In total, there are 87 long lines.

File# lines# units# long lines
validate.rs
in guard/src/commands
520 14 17
evaluate.rs
in guard/src/rules
1068 33 15
path_value.rs
in guard/src/rules
632 17 9
parser.rs
in guard/src/rules
1171 74 9
cfn_reporter.rs
in guard/src/commands/validate
158 2 8
generic_summary.rs
in guard/src/commands/validate
149 5 8
test.rs
in guard/src/commands
175 4 4
rulegen.rs
in guard/src/commands
134 5 4
migrate.rs
in guard/src/commands
135 3 3
parse_tree.rs
in guard/src/commands
58 3 2
Cargo.toml
in guard
37 - 2
Cargo.toml
in guard-lambda
18 - 2
parser.rs
in guard/src/migrate
328 11 1
helper.rs
in guard/src/commands
34 - 1
common_test_helpers.rs
in guard/src/commands
17 4 1
summary_table.rs
in guard/src/commands/validate
45 1 1