awslabs / amazon-qldb-driver-dotnet
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
  • 21% duplication:
    • 2,618 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 570 duplicated lines
  • 72 duplicates
system21% (570 lines)
Duplication per Extension
cs21% (570 lines)
Duplication per Component (primary)
Amazon.QLDB.Driver.IntegrationTests41% (410 lines)
Amazon.QLDB.Driver/result31% (88 lines)
Amazon.QLDB.Driver.IntegrationTests/utils12% (34 lines)
Amazon.QLDB.Driver/driver6% (24 lines)
Amazon.QLDB.Driver/session11% (14 lines)
ROOT0% (0 lines)
Amazon.QLDB.Driver/exception0% (0 lines)
Amazon.QLDB.Driver0% (0 lines)
Amazon.QLDB.Driver/query0% (0 lines)
Amazon.QLDB.Driver/retry0% (0 lines)
Amazon.QLDB.Driver/client0% (0 lines)
Amazon.QLDB.Driver/transaction0% (0 lines)
Amazon.QLDB.Driver/utils0% (0 lines)
Amazon.QLDB.Driver/executable0% (0 lines)
Amazon.QLDB.Driver.Serialization0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 72 duplicates...
Size#FoldersFilesLinesCode
21 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
686:717 (3%)
768:799 (3%)
view
17 x 2 Amazon.QLDB.Driver/result
Amazon.QLDB.Driver/result/generic
Result.cs
Result.cs
103:149 (45%)
122:168 (40%)
view
16 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
527:548 (2%)
590:611 (2%)
view
15 x 2 Amazon.QLDB.Driver/result
Amazon.QLDB.Driver/result/generic
AsyncResult.cs
AsyncResult.cs
121:156 (33%)
135:170 (28%)
view
14 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
361:380 (2%)
402:421 (2%)
view
14 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
361:380 (2%)
492:511 (2%)
view
14 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
402:421 (2%)
492:511 (2%)
view
11 x 2 Amazon.QLDB.Driver.IntegrationTests/utils
Amazon.QLDB.Driver.IntegrationTests/utils
IntegrationTestBase.cs
IntegrationTestBase.cs
94:113 (4%)
124:143 (4%)
view
11 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
382:399 (1%)
423:440 (1%)
view
11 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
AsyncStatementExecutionTests.cs
StatementExecutionTests.cs
497:510 (3%)
872:885 (1%)
view
11 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
241:256 (1%)
317:332 (1%)
view
10 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
AsyncStatementExecutionTests.cs
StatementExecutionTests.cs
211:222 (3%)
347:358 (1%)
view
9 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
318:330 (1%)
407:419 (1%)
view
9 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
242:254 (1%)
497:509 (1%)
view
9 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
AsyncStatementExecutionTests.cs
AsyncStatementExecutionTests.cs
387:398 (2%)
426:437 (2%)
view
9 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
242:254 (1%)
366:378 (1%)
view
9 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
257:269 (1%)
381:393 (1%)
view
9 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
457:469 (1%)
561:573 (1%)
view
9 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
318:330 (1%)
497:509 (1%)
view
9 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
StatementExecutionTests.cs
StatementExecutionTests.cs
318:330 (1%)
366:378 (1%)
view
Duplicated Units
The list of top 9 duplicated units.
See data for all 9 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 Amazon.QLDB.Driver/result/generic
Amazon.QLDB.Driver/result
AsyncResult.cs
AsyncResult.cs
57:71 
54:68 
view
12 x 2 Amazon.QLDB.Driver/result/generic
Amazon.QLDB.Driver/result
AsyncResult.cs
AsyncResult.cs
144:157 
130:143 
view
12 x 2 Amazon.QLDB.Driver/result/generic
Amazon.QLDB.Driver/result
Result.cs
Result.cs
145:158 
126:139 
view
9 x 2 Amazon.QLDB.Driver/driver
Amazon.QLDB.Driver/driver
AsyncQldbDriver.cs
QldbDriver.cs
49:58 
48:57 
view
8 x 2 Amazon.QLDB.Driver/transaction
Amazon.QLDB.Driver/transaction
BaseTransaction.cs
BaseTransaction.cs
60:69 
71:80 
view
8 x 2 Amazon.QLDB.Driver.IntegrationTests
Amazon.QLDB.Driver.IntegrationTests
SessionManagementTests.cs
AsyncSessionManagementTests.cs
28:40 
29:41 
view
7 x 2 Amazon.QLDB.Driver/result/generic
Amazon.QLDB.Driver/result
AsyncResult.cs
AsyncResult.cs
164:171 
150:157 
view
6 x 2 Amazon.QLDB.Driver/result/generic
Amazon.QLDB.Driver/result
Result.cs
Result.cs
163:169 
144:150 
view
6 x 2 Amazon.QLDB.Driver/utils
Amazon.QLDB.Driver/utils
ValidationUtils.cs
ValidationUtils.cs
43:49 
57:63 
view