aws-samples / serverless-go-demo
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 20 files with 851 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)
    • 2 small files (234 lines of code)
    • 18 very small files (617 lines of code)
0% | 0% | 0% | 27% | 72%
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
yaml0% | 0% | 0% | 100% | 0%
go0% | 0% | 0% | 15% | 84%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 0% | 0% | 100% | 0%
store0% | 0% | 0% | 72% | 27%
handlers0% | 0% | 0% | 0% | 100%
bus0% | 0% | 0% | 0% | 100%
domain0% | 0% | 0% | 0% | 100%
types/mocks0% | 0% | 0% | 0% | 100%
load-testing0% | 0% | 0% | 0% | 100%
types0% | 0% | 0% | 0% | 100%
functions/products-stream0% | 0% | 0% | 0% | 100%
functions/get-product0% | 0% | 0% | 0% | 100%
functions/put-product0% | 0% | 0% | 0% | 100%
functions/delete-product0% | 0% | 0% | 0% | 100%
functions/get-products0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
Longest Files (Top 20)
File# lines# units
template.yaml
in root
131 -
dynamodb.go
in store
103 5
apigateway.go
in handlers
97 7
event_bridge.go
in bus
88 3
mock_store.go
in types/mocks
64 10
dynamodb.go
in handlers
63 3
products.go
in domain
59 5
memory.go
in store
40 5
load-test.yml
in load-testing
29 -
products_stream.go
in domain
21 2
generator.js
in load-testing
21 -
main.go
in functions/products-stream
19 1
main.go
in functions/get-product
19 1
main.go
in functions/put-product
19 1
main.go
in functions/delete-product
19 1
main.go
in functions/get-products
19 1
bus.go
in types
16 -
store.go
in types
10 -
product.go
in types
10 -
tools.go
in tools
4 -
Files With Most Units (Top 13)
File# lines# units
mock_store.go
in types/mocks
64 10
apigateway.go
in handlers
97 7
memory.go
in store
40 5
dynamodb.go
in store
103 5
products.go
in domain
59 5
dynamodb.go
in handlers
63 3
event_bridge.go
in bus
88 3
products_stream.go
in domain
21 2
main.go
in functions/products-stream
19 1
main.go
in functions/get-product
19 1
main.go
in functions/put-product
19 1
main.go
in functions/delete-product
19 1
main.go
in functions/get-products
19 1
Files With Long Lines (Top 4)

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

File# lines# units# long lines
apigateway.go
in handlers
97 7 4
mock_store.go
in types/mocks
64 10 1
dynamodb.go
in handlers
63 3 1
event_bridge.go
in bus
88 3 1