microsoft / vscode-dev-containers
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
  • 3% duplication:
    • 2,459 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 78 duplicated lines
  • 6 duplicates
system3% (78 lines)
Duplication per Extension
js1% (34 lines)
py18% (30 lines)
rs100% (14 lines)
Duplication per Component (primary)
build/src1% (34 lines)
containers/python-3-anaconda-postgres18% (10 lines)
containers/python-3-miniconda71% (10 lines)
containers/python-3-anaconda100% (10 lines)
containers/rust-postgres53% (7 lines)
containers/rust50% (7 lines)
ROOT0% (0 lines)
build/assets0% (0 lines)
build0% (0 lines)
containers/azure-static-web-apps0% (0 lines)
containers/azure-terraform0% (0 lines)
containers/bazel0% (0 lines)
containers/codespaces-linux0% (0 lines)
containers/cpp-mariadb0% (0 lines)
containers/cpp0% (0 lines)
containers/dapr-dotnet0% (0 lines)
containers/dapr-javascript-node0% (0 lines)
containers/dart0% (0 lines)
containers/dotnet-fsharp0% (0 lines)
containers/dotnet-mssql0% (0 lines)
containers/dotnet0% (0 lines)
containers/go-postgres0% (0 lines)
containers/go0% (0 lines)
containers/java-80% (0 lines)
containers/java-postgres0% (0 lines)
containers/java0% (0 lines)
containers/javascript-node-azurite0% (0 lines)
containers/javascript-node-mongo0% (0 lines)
containers/javascript-node-postgres0% (0 lines)
containers/javascript-node0% (0 lines)
containers/perl0% (0 lines)
containers/php0% (0 lines)
containers/powershell0% (0 lines)
containers/python-3-device-simulator-express0% (0 lines)
containers/python-3-postgres0% (0 lines)
containers/python-3-pypy0% (0 lines)
containers/python-30% (0 lines)
containers/r0% (0 lines)
containers/reasonml0% (0 lines)
containers/ruby-sinatra0% (0 lines)
containers/ruby0% (0 lines)
containers/swift0% (0 lines)
containers/typescript-node0% (0 lines)
script-library/container-features0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
10 x 2 containers/python-3-anaconda-postgres/test-project
containers/python-3-miniconda/test-project
plot.py
hello.py
13:26 (100%)
12:25 (100%)
view
10 x 2 containers/python-3-anaconda-postgres/test-project
containers/python-3-anaconda/test-project
plot.py
hello.py
13:26 (100%)
12:25 (100%)
view
10 x 2 containers/python-3-anaconda/test-project
containers/python-3-miniconda/test-project
hello.py
hello.py
12:25 (100%)
12:25 (100%)
view
9 x 2 build/src/utils
build/src/utils
async.js
async.js
42:51 (5%)
83:92 (5%)
view
8 x 2 build/src/utils
build/src/utils
image-content-extractor.js
image-content-extractor.js
448:458 (2%)
489:499 (2%)
view
7 x 2 containers/rust-postgres/test-project/src
containers/rust/test-project/src
main.rs
main.rs
1:8 (100%)
1:8 (100%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
13 x 2 build/src/utils
build/src/utils
component-formatter-factory.js
component-formatter-factory.js
51:64 
78:91 
view
13 x 2 build/src/utils
build/src/utils
component-formatter-factory.js
component-formatter-factory.js
161:174 
187:200 
view