aws / aws-lambda-go
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 2% duplication:
    • 2,333 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 64 duplicated lines
  • 7 duplicates
system2% (64 lines)
Duplication per Extension
go2% (64 lines)
Duplication per Component (primary)
events3% (64 lines)
lambdacontext0% (0 lines)
cfn0% (0 lines)
lambda0% (0 lines)
lambda/messages0% (0 lines)
lambda/handlertrace0% (0 lines)
cmd/build-lambda-zip0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
9 x 2 events
events
apigw.go
apigw.go
7:15 (4%)
268:276 (4%)
view
8 x 2 events
events
codebuild.go
codedeploy.go
48:71 (7%)
27:52 (25%)
view
8 x 2 events
events
autoscaling.go
codepipeline_cloudwatch.go
9:16 (80%)
48:73 (14%)
view
8 x 2 events
events
autoscaling.go
cloudwatch_events.go
9:16 (80%)
11:18 (80%)
view
8 x 2 events
events
cloudwatch_events.go
codepipeline_cloudwatch.go
11:18 (80%)
48:73 (14%)
view
6 x 2 events
events
apigw.go
apigw.go
10:15 (2%)
154:159 (2%)
view
6 x 2 events
events
apigw.go
apigw.go
154:159 (2%)
271:276 (2%)
view