apple / apple-llvm-infrastructure-tools
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
  • <1% duplication:
    • 6,885 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 68 duplicated lines
  • 5 duplicates
system<1% (68 lines)
Duplication per Extension
h1% (44 lines)
cpp1% (12 lines)
py<1% (12 lines)
Duplication per Component (primary)
src1% (56 lines)
ROOT4% (12 lines)
git_apple_llvm/am0% (0 lines)
git_apple_llvm/ci0% (0 lines)
git_apple_llvm/config0% (0 lines)
git_apple_llvm/git_tools0% (0 lines)
git_apple_llvm/pr0% (0 lines)
libexec/apple-llvm/helpers0% (0 lines)
src/tools0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
8 x 2 src
src
commit_interleaver.h
commit_interleaver.h
711:724 (<1%)
756:764 (<1%)
view
8 x 2 src
src
git_cache.h
git_cache.h
893:901 (<1%)
911:919 (<1%)
view
6 x 2 src
src
git_cache.h
git_cache.h
971:976 (<1%)
1100:1105 (<1%)
view
6 x 2 src
src
svn2git.cpp
svn2git.cpp
197:202 (3%)
232:237 (3%)
view
6 x 2 ROOT
ROOT
setup.py
setup.py
24:32 (14%)
41:49 (14%)
view