aws-samples / cicd-for-networking-resources
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
  • 25% duplication:
    • 1,020 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 256 duplicated lines
  • 16 duplicates
system25% (256 lines)
Duplication per Extension
py36% (130 lines)
yaml18% (126 lines)
Duplication per Component (primary)
SecurityGroups/config/code36% (130 lines)
ROOT19% (118 lines)
SecurityGroups/config16% (8 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
29 x 2 ROOT
ROOT
pipelines.yaml
pipelines.yaml
37:66 (5%)
151:180 (5%)
view
19 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
252:270 (5%)
289:307 (5%)
view
13 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
126:138 (3%)
173:185 (3%)
view
13 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
150:163 (3%)
173:185 (3%)
view
13 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
102:115 (3%)
150:163 (3%)
view
13 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
102:115 (3%)
173:185 (3%)
view
13 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
102:115 (3%)
126:138 (3%)
view
13 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
126:138 (3%)
150:163 (3%)
view
10 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
272:281 (3%)
309:318 (3%)
view
10 x 2 SecurityGroups/config/code
SecurityGroups/config/code
index.py
index.py
33:42 (3%)
45:54 (3%)
view
9 x 2 ROOT
ROOT
pipelines.yaml
pipelines.yaml
469:477 (1%)
521:529 (1%)
view
8 x 2 ROOT
ROOT
macro.yaml
pipelines.yaml
5:12 (7%)
521:528 (1%)
view
8 x 2 ROOT
ROOT
macro.yaml
pipelines.yaml
5:12 (7%)
469:476 (1%)
view
8 x 2 SecurityGroups/config
ROOT
security-group.yaml
pipelines.yaml
27:34 (16%)
391:398 (1%)
view
7 x 2 ROOT
ROOT
macro.yaml
macro.yaml
71:79 (6%)
106:112 (6%)
view
6 x 2 ROOT
ROOT
pipelines.yaml
pipelines.yaml
250:255 (1%)
304:309 (1%)
view