aws-samples / cdk-cognito-idp
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,584 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (437 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (319 lines of code)
    • 22 very small files (828 lines of code)
0% | 0% | 27% | 20% | 52%
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% | 30% | 22% | 47%
html0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lambda0% | 0% | 32% | 19% | 48%
lib0% | 0% | 46% | 0% | 53%
web0% | 0% | 0% | 50% | 49%
ROOT0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
lambda/entities0% | 0% | 0% | 0% | 100%
Longest Files (Top 26)
File# lines# units
decode-verify-jwt-get.ts
in lambda
227 2
cognito-idp-stack.ts
in lib
210 1
index.ts
in web
182 9
database.ts
in lambda
137 6
static-site.ts
in lib
88 4
cognito-rest-api.ts
in lib
82 1
index-direct.ts
in web
75 7
handler.ts
in lambda
70 4
resource-handler.ts
in lib
66 1
create-config.ts
in lambda
53 1
user-post.ts
in lambda
42 2
index.html
in web
41 -
user-delete.ts
in lambda
41 2
index-direct.html
in web
39 -
user-get.ts
in lambda
33 2
userbyusername-get.ts
in lambda
30 2
users-get.ts
in lambda
27 2
index.css
in web
25 -
unit.ts
in lambda
24 2
tslint.yaml
in root
23 -
util.ts
in lambda
20 1
copy-dist.ts
in scripts
14 -
jest.config.js
in root
13 -
user.ts
in lambda/entities
10 -
resource-handler-props.ts
in lib
9 1
clean.js
in root
3 -
Files With Most Units (Top 18)
File# lines# units
index.ts
in web
182 9
index-direct.ts
in web
75 7
database.ts
in lambda
137 6
static-site.ts
in lib
88 4
handler.ts
in lambda
70 4
users-get.ts
in lambda
27 2
userbyusername-get.ts
in lambda
30 2
user-post.ts
in lambda
42 2
user-delete.ts
in lambda
41 2
user-get.ts
in lambda
33 2
decode-verify-jwt-get.ts
in lambda
227 2
unit.ts
in lambda
24 2
cognito-rest-api.ts
in lib
82 1
resource-handler-props.ts
in lib
9 1
cognito-idp-stack.ts
in lib
210 1
resource-handler.ts
in lib
66 1
create-config.ts
in lambda
53 1
util.ts
in lambda
20 1
Files With Long Lines (Top 3)

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

File# lines# units# long lines
static-site.ts
in lib
88 4 1
index-direct.html
in web
39 - 1
handler.ts
in lambda
70 4 1