cdklabs / cdk-watchful
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 26 files with 1,619 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (779 lines of code)
    • 20 very small files (840 lines of code)
0% | 0% | 0% | 48% | 51%
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% | 0% | 48% | 51%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 0% | 85% | 14%
src/monitoring/aws/sqs0% | 0% | 0% | 0% | 100%
src/monitoring/aws/ecs0% | 0% | 0% | 0% | 100%
example0% | 0% | 0% | 0% | 100%
src/monitoring/aws/api-gateway0% | 0% | 0% | 0% | 100%
src/widget0% | 0% | 0% | 0% | 100%
src/monitoring/aws/redshift0% | 0% | 0% | 0% | 100%
src/monitoring/aws/rds0% | 0% | 0% | 0% | 100%
src/monitoring/aws/lambda0% | 0% | 0% | 0% | 100%
src/monitoring/aws/state-machine0% | 0% | 0% | 0% | 100%
src/monitoring/aws/sns0% | 0% | 0% | 0% | 100%
src/monitoring/aws/dynamodb0% | 0% | 0% | 0% | 100%
example/lambda0% | 0% | 0% | 0% | 100%
src/core0% | 0% | 0% | 0% | 100%
Longest Files (Top 26)
File# lines# units
ecs.ts
in src
185 9
watchful.ts
in src
141 14
dynamodb.ts
in src
119 7
rds-aurora.ts
in src
119 7
api-gateway.ts
in src
109 6
lambda.ts
in src
106 5
metrics.ts
in src/monitoring/aws/ecs
92 10
monitoring.ts
in src/monitoring/aws/sqs
89 8
index.ts
in example
82 3
metrics.ts
in src/monitoring/aws/api-gateway
70 6
state-machine.ts
in src
61 3
metrics.ts
in src/monitoring/aws/redshift
60 8
aspect.ts
in src
52 2
metrics.ts
in src/monitoring/aws/rds
46 6
metrics.ts
in src/monitoring/aws/lambda
41 5
metrics.ts
in src/monitoring/aws/state-machine
33 2
metrics.ts
in src/monitoring/aws/sqs
33 5
metrics.ts
in src/monitoring/aws/sns
33 5
axis.ts
in src/widget
31 -
section.ts
in src/widget
27 2
metrics.ts
in src/monitoring/aws/dynamodb
26 2
index.ts
in example/lambda
26 -
api.ts
in src
13 -
index.ts
in src
9 -
monitoring.ts
in src/core
8 -
constant.ts
in src/widget
8 -
Files With Most Units (Top 20)
File# lines# units
watchful.ts
in src
141 14
metrics.ts
in src/monitoring/aws/ecs
92 10
ecs.ts
in src
185 9
monitoring.ts
in src/monitoring/aws/sqs
89 8
metrics.ts
in src/monitoring/aws/redshift
60 8
dynamodb.ts
in src
119 7
rds-aurora.ts
in src
119 7
metrics.ts
in src/monitoring/aws/rds
46 6
metrics.ts
in src/monitoring/aws/api-gateway
70 6
api-gateway.ts
in src
109 6
metrics.ts
in src/monitoring/aws/sqs
33 5
metrics.ts
in src/monitoring/aws/sns
33 5
metrics.ts
in src/monitoring/aws/lambda
41 5
lambda.ts
in src
106 5
state-machine.ts
in src
61 3
index.ts
in example
82 3
aspect.ts
in src
52 2
metrics.ts
in src/monitoring/aws/state-machine
33 2
metrics.ts
in src/monitoring/aws/dynamodb
26 2
section.ts
in src/widget
27 2
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 46 long lines.

File# lines# units# long lines
dynamodb.ts
in src
119 7 7
ecs.ts
in src
185 9 7
metrics.ts
in src/monitoring/aws/state-machine
33 2 5
metrics.ts
in src/monitoring/aws/api-gateway
70 6 5
watchful.ts
in src
141 14 5
rds-aurora.ts
in src
119 7 5
metrics.ts
in src/monitoring/aws/rds
46 6 4
metrics.ts
in src/monitoring/aws/ecs
92 10 4
lambda.ts
in src
106 5 3
state-machine.ts
in src
61 3 1