golang / oauth2
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
  • 3% duplication:
    • 2,084 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 82 duplicated lines
  • 5 duplicates
system3% (82 lines)
Duplication per Extension
go3% (82 lines)
Duplication per Component (primary)
google3% (40 lines)
jwt25% (21 lines)
jira26% (21 lines)
kakao0% (0 lines)
bitbucket0% (0 lines)
foursquare0% (0 lines)
slack0% (0 lines)
authhandler0% (0 lines)
gitlab0% (0 lines)
mailchimp0% (0 lines)
heroku0% (0 lines)
amazon0% (0 lines)
facebook0% (0 lines)
yahoo0% (0 lines)
nokiahealth0% (0 lines)
vk0% (0 lines)
paypal0% (0 lines)
ROOT0% (0 lines)
twitch0% (0 lines)
clientcredentials0% (0 lines)
yandex0% (0 lines)
internal0% (0 lines)
hipchat0% (0 lines)
microsoft0% (0 lines)
fitbit0% (0 lines)
endpoints0% (0 lines)
odnoklassniki0% (0 lines)
mailru0% (0 lines)
jws0% (0 lines)
github0% (0 lines)
stackoverflow0% (0 lines)
instagram0% (0 lines)
uber0% (0 lines)
mediamath0% (0 lines)
cern0% (0 lines)
linkedin0% (0 lines)
spotify0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
10 x 2 google/internal/externalaccount
google/internal/externalaccount
filecredsource.go
urlcredsource.go
37:49 (32%)
55:67 (24%)
view
10 x 2 google/internal/externalaccount
google/internal/externalaccount
aws.go
aws.go
356:371 (3%)
450:465 (3%)
view
8 x 2 jira
jwt
jira.go
jwt.go
60:80 (10%)
81:101 (9%)
view
7 x 2 jira
jwt
jira.go
jwt.go
113:121 (8%)
135:143 (8%)
view
6 x 2 jira
jwt
jira.go
jwt.go
129:136 (7%)
154:161 (7%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 microsoft
endpoints
microsoft.go
endpoints.go
23:31 
223:231 
view