awslabs / aws-data-exchange-publisher-coordinator
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
  • 17% duplication:
    • 604 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 107 duplicated lines
  • 13 duplicates
system17% (107 lines)
Duplication per Extension
yaml16% (54 lines)
py19% (53 lines)
Duplication per Component (primary)
source16% (54 lines)
source/FinalizeAndUpdateCatalogFunction22% (11 lines)
source/StartPublicationFunction26% (11 lines)
source/CreateRevisionFunction13% (11 lines)
source/CheckJobStatusFunction31% (11 lines)
source/SolutionHelper13% (9 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
15 x 2 source
source
template.yaml
template.yaml
110:124 (4%)
175:189 (4%)
view
11 x 2 source/CreateRevisionFunction
source/StartPublicationFunction
app.py
app.py
29:39 (14%)
30:41 (28%)
view
11 x 2 source/CheckJobStatusFunction
source/CreateRevisionFunction
app.py
app.py
24:34 (33%)
29:39 (14%)
view
11 x 2 source/CheckJobStatusFunction
source/FinalizeAndUpdateCatalogFunction
app.py
app.py
24:34 (33%)
27:37 (23%)
view
11 x 2 source/CheckJobStatusFunction
source/StartPublicationFunction
app.py
app.py
24:34 (33%)
30:41 (28%)
view
11 x 2 source/FinalizeAndUpdateCatalogFunction
source/StartPublicationFunction
app.py
app.py
27:37 (23%)
30:41 (28%)
view
11 x 2 source/CreateRevisionFunction
source/FinalizeAndUpdateCatalogFunction
app.py
app.py
29:39 (14%)
27:37 (23%)
view
9 x 2 source/SolutionHelper
source/StartPublicationFunction
app.py
app.py
29:37 (13%)
30:39 (23%)
view
9 x 2 source/CheckJobStatusFunction
source/SolutionHelper
app.py
app.py
24:32 (27%)
29:37 (13%)
view
9 x 2 source/FinalizeAndUpdateCatalogFunction
source/SolutionHelper
app.py
app.py
27:35 (19%)
29:37 (13%)
view
9 x 2 source/CreateRevisionFunction
source/SolutionHelper
app.py
app.py
29:37 (11%)
29:37 (13%)
view
6 x 2 source
source
template.yaml
template.yaml
58:63 (1%)
66:71 (1%)
view
6 x 2 source
source
template.yaml
template.yaml
51:56 (1%)
80:85 (1%)
view