awslabs / aws-c-auth
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
  • 7% duplication:
    • 7,906 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 571 duplicated lines
  • 118 duplicates
system7% (571 lines)
Duplication per Extension
c7% (564 lines)
h<1% (7 lines)
Duplication per Component (primary)
source7% (564 lines)
include/aws/auth1% (7 lines)
cmake0% (0 lines)
include/aws/auth/private0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 118 duplicates...
Size#FoldersFilesLinesCode
13 x 2 source
source
aws_imds_client.c
aws_imds_client.c
1498:1514 (1%)
1521:1537 (1%)
view
13 x 2 source
source
aws_imds_client.c
aws_imds_client.c
1395:1411 (1%)
1498:1514 (1%)
view
13 x 2 source
source
aws_imds_client.c
aws_imds_client.c
1395:1411 (1%)
1521:1537 (1%)
view
12 x 2 source
source
credentials_provider_process.c
credentials_provider_sts_web_identity.c
120:131 (6%)
838:849 (1%)
view
12 x 2 source
source
credentials_provider_sts.c
credentials_provider_sts_web_identity.c
39:52 (2%)
530:543 (1%)
view
11 x 2 source
source
aws_imds_client.c
credentials_provider_sts_web_identity.c
66:77 (1%)
48:59 (1%)
view
11 x 2 source
source
credentials_provider_ecs.c
credentials_provider_x509.c
40:51 (2%)
39:50 (2%)
view
11 x 2 source
source
aws_imds_client.c
credentials_provider_sts_web_identity.c
453:466 (1%)
625:638 (1%)
view
9 x 2 source
source
credentials_provider_sts.c
credentials_provider_x509.c
68:76 (1%)
41:49 (2%)
view
9 x 2 source
source
credentials_provider_ecs.c
credentials_provider_sts.c
42:50 (2%)
68:76 (1%)
view
9 x 2 source
source
aws_imds_client.c
credentials_provider_ecs.c
356:366 (<1%)
237:247 (2%)
view
9 x 2 source
source
credentials_provider_ecs.c
credentials_provider_x509.c
237:247 (2%)
270:280 (2%)
view
9 x 2 source
source
aws_imds_client.c
credentials_provider_x509.c
356:366 (<1%)
270:280 (2%)
view
8 x 2 source
source
credentials_provider_ecs.c
credentials_provider_x509.c
389:401 (2%)
418:430 (2%)
view
8 x 2 source
source
aws_imds_client.c
aws_imds_client.c
1021:1033 (<1%)
1114:1126 (<1%)
view
8 x 2 source
source
aws_imds_client.c
credentials_provider_ecs.c
1036:1043 (<1%)
150:157 (2%)
view
8 x 2 source
source
aws_imds_client.c
credentials_provider_x509.c
66:74 (<1%)
39:47 (2%)
view
8 x 2 source
source
aws_imds_client.c
aws_imds_client.c
1117:1130 (<1%)
1303:1316 (<1%)
view
8 x 2 source
source
credentials_provider_sts_web_identity.c
credentials_provider_x509.c
48:56 (1%)
39:47 (2%)
view
8 x 2 source
source
credentials_provider_ecs.c
credentials_provider_x509.c
536:546 (2%)
569:578 (2%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
18 x 2 source
source
aws_imds_client.c
aws_imds_client.c
1394:1415 
1497:1518 
view
6 x 2 source
source
aws_imds_client.c
aws_imds_client.c
1370:1376 
1378:1384 
view
6 x 2 source
source
signable_trailer.c
signable.c
56:63 
96:104 
view