aws-samples / amazon-qldb-dmv-sample-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 35 files with 2,218 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (255 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (411 lines of code)
    • 31 very small files (1,552 lines of code)
0% | 0% | 11% | 18% | 69%
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% | 11% | 18% | 69%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 15% | 13% | 71%
src/model0% | 0% | 0% | 100% | 0%
src/qldb0% | 0% | 0% | 0% | 100%
Longest Files (Top 35)
File# lines# units
ExportJournal.ts
in src
255 7
SampleData.ts
in src/model
190 -
GetBlock.ts
in src
117 3
GetRevision.ts
in src
104 3
JournalS3ExportReader.ts
in src/qldb
96 6
Verifier.ts
in src/qldb
81 9
TransferVehicleOwnership.ts
in src
80 4
RegisterDriversLicense.ts
in src
78 5
Util.ts
in src/qldb
77 6
ValidateQldbHashchain.ts
in src
76 3
TagResources.ts
in src
75 4
AddSecondaryOwner.ts
in src
70 3
InsertIonTypes.ts
in src
67 2
RenewDriversLicense.ts
in src
67 3
DeletionProtection.ts
in src
54 3
InsertDocument.ts
in src
53 3
ListJournalExports.ts
in src
53 2
BlockAddress.ts
in src/qldb
50 6
index.ts
in src
49 -
DeleteLedger.ts
in src
49 2
CreateLedger.ts
in src
49 2
CreateIndex.ts
in src
45 1
DescribeJournalExport.ts
in src
37 1
QueryHistory.ts
in src
37 1
JournalBlock.ts
in src/qldb
36 1
CreateTable.ts
in src
34 1
ConnectToLedger.ts
in src
32 2
ScanTable.ts
in src
32 2
FindVehicles.ts
in src
31 1
DeregisterDriversLicense.ts
in src
29 1
ListLedgers.ts
in src
29 1
GetDigest.ts
in src
25 1
LogUtil.ts
in src/qldb
24 4
DescribeLedger.ts
in src
23 1
Constants.ts
in src/qldb
14 -
Files With Most Units (Top 20)
File# lines# units
Verifier.ts
in src/qldb
81 9
ExportJournal.ts
in src
255 7
JournalS3ExportReader.ts
in src/qldb
96 6
BlockAddress.ts
in src/qldb
50 6
Util.ts
in src/qldb
77 6
RegisterDriversLicense.ts
in src
78 5
TagResources.ts
in src
75 4
LogUtil.ts
in src/qldb
24 4
TransferVehicleOwnership.ts
in src
80 4
GetBlock.ts
in src
117 3
InsertDocument.ts
in src
53 3
AddSecondaryOwner.ts
in src
70 3
ValidateQldbHashchain.ts
in src
76 3
GetRevision.ts
in src
104 3
DeletionProtection.ts
in src
54 3
RenewDriversLicense.ts
in src
67 3
ConnectToLedger.ts
in src
32 2
ListJournalExports.ts
in src
53 2
DeleteLedger.ts
in src
49 2
ScanTable.ts
in src
32 2
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
JournalBlock.ts
in src/qldb
36 1 1
ExportJournal.ts
in src
255 7 1
InsertIonTypes.ts
in src
67 2 1