awslabs / amazon-emr-on-eks-custom-image-cli
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
  • 13% duplication:
    • 1,323 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 181 duplicated lines
  • 27 duplicates
system13% (181 lines)
Duplication per Extension
yaml10% (85 lines)
spec80% (48 lines)
py10% (48 lines)
Duplication per Component (primary)
assets10% (85 lines)
installer/pyinstaller80% (48 lines)
custom_image_cli/validation_tool/validation_models34% (48 lines)
custom_image_cli0% (0 lines)
custom_image_cli/helper0% (0 lines)
custom_image_cli/helper/docker_util0% (0 lines)
custom_image_cli/cli0% (0 lines)
custom_image_cli/commands0% (0 lines)
custom_image_cli/validation_tool0% (0 lines)
custom_image_cli/validation_tool/validation_tests0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 27 duplicates...
Size#FoldersFilesLinesCode
24 x 2 installer/pyinstaller
installer/pyinstaller
spec
custom-image-validation-tool-win.spec
custom-image-validation-tool.spec
11:34 (80%)
11:34 (80%)
view
19 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
3:21 (2%)
23:41 (2%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
43:53 (1%)
63:73 (1%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
3:13 (1%)
83:93 (1%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
23:33 (1%)
83:93 (1%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
63:73 (1%)
83:93 (1%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
23:33 (1%)
43:53 (1%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
3:13 (1%)
43:53 (1%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
43:53 (1%)
83:93 (1%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
3:13 (1%)
63:73 (1%)
view
11 x 2 assets
assets
image-manifest.yaml
image-manifest.yaml
23:33 (1%)
63:73 (1%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
19:27 (5%)
76:84 (5%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
47:55 (5%)
76:84 (5%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
47:55 (5%)
169:177 (5%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
19:27 (5%)
138:146 (5%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
76:84 (5%)
106:114 (5%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
19:27 (5%)
47:55 (5%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
76:84 (5%)
138:146 (5%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
138:146 (5%)
169:177 (5%)
view
8 x 2 custom_image_cli/validation_tool/validation_models
custom_image_cli/validation_tool/validation_models
validation_models.py
validation_models.py
47:55 (5%)
106:114 (5%)
view