aws-samples / serverless-content-syndication-with-aws-step-functions
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 28 units with 531 lines of code in units (84.4% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (195 lines of code)
    • 6 medium size units (145 lines of code)
    • 7 small units (116 lines of code)
    • 12 very small units (75 lines of code)
0% | 36% | 27% | 21% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 36% | 27% | 21% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/handlers0% | 45% | 29% | 7% | 17%
cdk/lib/partners0% | 39% | 34% | 16% | 9%
cdk/lib0% | 0% | 0% | 81% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
84 2 1
56 6 1
export async function ProcessVideos()
in src/handlers/provider-ace.ts
55 1 1
27 6 1
25 1 1
private createWorkflow()
in cdk/lib/partners/ACE.ts
24 2 0
24 1 1
export async function ProcessImages()
in src/handlers/provider-ace.ts
24 1 1
export async function ProcessMetadata()
in src/handlers/provider-ace.ts
21 1 1
private createWorkflow()
in cdk/lib/partners/other.ts
20 1 0
private createStateMachine()
in cdk/lib/syndication-workflow.ts
19 1 0
export async function PostProcessOutput()
in src/handlers/provider-ace.ts
18 1 1
private setupLambdaForS3Events()
in cdk/lib/syndication-workflow.ts
17 1 1
private setupLambdaToHandleFinishedTranscoding()
in cdk/lib/syndication-workflow.ts
16 1 1
private createPostProcessingTask()
in cdk/lib/partners/ACE.ts
15 1 1
constructor()
in cdk/lib/syndication-workflow.ts
11 1 3
constructor()
in cdk/lib/partners/ACE.ts
9 1 5
8 1 3
export async function Image()
in src/handlers/provider-other.ts
8 1 1
export async function Metadata()
in src/handlers/provider-other.ts
8 1 1