aws-samples / amazon-qldb-kvs-nodejs
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 18 files with 1,525 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (523 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (417 lines of code)
    • 14 very small files (585 lines of code)
0% | 34% | 0% | 27% | 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
ts0% | 34% | 0% | 27% | 38%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 34% | 0% | 27% | 38%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 18)
File# lines# units
QLDBKVS.ts
in src
523 14
GetMetadata.ts
in src
181 3
GetDocument.ts
in src
135 6
VerifyLedgerMetadata.ts
in src
101 2
GetBlock.ts
in src
95 3
Verifier.ts
in src
82 9
VerifyRevisionHash.ts
in src
68 5
UpsertDocument.ts
in src
66 1
GetDocumentHistory.ts
in src
65 2
GetRevision.ts
in src
61 3
BlockAddress.ts
in src
57 6
QLDBHelper.ts
in src
44 2
Logging.ts
in src
15 -
ConnectToLedger.ts
in src
10 1
GetDigest.ts
in src
8 1
jest.config.js
in root
7 -
Constants.ts
in src
6 -
index.ts
in src
1 -
Files With Most Units (Top 14)
File# lines# units
QLDBKVS.ts
in src
523 14
Verifier.ts
in src
82 9
BlockAddress.ts
in src
57 6
GetDocument.ts
in src
135 6
VerifyRevisionHash.ts
in src
68 5
GetBlock.ts
in src
95 3
GetRevision.ts
in src
61 3
GetMetadata.ts
in src
181 3
QLDBHelper.ts
in src
44 2
VerifyLedgerMetadata.ts
in src
101 2
GetDocumentHistory.ts
in src
65 2
ConnectToLedger.ts
in src
10 1
UpsertDocument.ts
in src
66 1
GetDigest.ts
in src
8 1
Files With Long Lines (Top 9)

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

File# lines# units# long lines
QLDBKVS.ts
in src
523 14 25
GetMetadata.ts
in src
181 3 12
GetDocument.ts
in src
135 6 7
VerifyLedgerMetadata.ts
in src
101 2 6
GetDocumentHistory.ts
in src
65 2 6
UpsertDocument.ts
in src
66 1 5
Verifier.ts
in src
82 9 1
QLDBHelper.ts
in src
44 2 1
GetRevision.ts
in src
61 3 1