microsoft / same-ish
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
  • 15% duplication:
    • 676 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 102 duplicated lines
  • 5 duplicates
system15% (102 lines)
Duplication per Extension
cljc16% (90 lines)
clj11% (12 lines)
Duplication per Component (primary)
src/same16% (90 lines)
ROOT11% (12 lines)
dev-resources0% (0 lines)
src0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
19 x 2 src/same
src/same
cljc
diff.cljc
diff.cljc
121:142 (8%)
226:247 (8%)
view
10 x 2 src/same
src/same
cljc
diff.cljc
diff.cljc
152:161 (4%)
214:223 (4%)
view
8 x 2 src/same
src/same
cljc
ish.cljc
ish.cljc
80:87 (6%)
138:145 (6%)
view
8 x 2 src/same
src/same
cljc
compare.cljc
compare.cljc
28:42 (13%)
52:62 (13%)
view
6 x 2 ROOT
ROOT
project.clj
project.clj
27:32 (5%)
35:40 (5%)
view