bazelbuild / apple_support
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
  • 17% duplication:
    • 775 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 133 duplicated lines
  • 29 duplicates
system17% (133 lines)
Duplication per Extension
bzl17% (133 lines)
Duplication per Component (primary)
lib19% (92 lines)
rules20% (27 lines)
rules/private8% (14 lines)

Duplication Between Components (50+ lines)

G lib lib rules rules lib--rules 87 rules/private rules/private lib--rules/private 72

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 29 duplicates...
Size#FoldersFilesLinesCode
14 x 2 lib
lib
apple_support.bzl
apple_support.bzl
224:238 (4%)
329:343 (4%)
view
14 x 2 rules
rules/private
apple_genrule.bzl
apple_genrule.bzl
1:15 (24%)
1:15 (8%)
view
13 x 2 lib
rules
lipo.bzl
universal_binary.bzl
1:13 (22%)
1:13 (18%)
view
13 x 2 lib
rules
transitions.bzl
universal_binary.bzl
1:13 (44%)
1:13 (18%)
view
13 x 2 lib
lib
lipo.bzl
transitions.bzl
1:13 (22%)
1:13 (44%)
view
13 x 2 lib
lib
apple_support.bzl
repositories.bzl
1:13 (4%)
1:13 (33%)
view
12 x 2 lib
lib
apple_support.bzl
transitions.bzl
2:13 (3%)
2:13 (41%)
view
12 x 2 lib
rules/private
transitions.bzl
apple_genrule.bzl
2:13 (41%)
2:13 (7%)
view
12 x 2 lib
lib
repositories.bzl
xcode_support.bzl
2:13 (30%)
2:13 (32%)
view
12 x 2 lib
rules/private
repositories.bzl
apple_genrule.bzl
2:13 (30%)
2:13 (7%)
view
12 x 2 lib
rules
xcode_support.bzl
universal_binary.bzl
2:13 (32%)
2:13 (17%)
view
12 x 2 lib
rules
repositories.bzl
apple_genrule.bzl
2:13 (30%)
2:13 (21%)
view
12 x 2 rules/private
rules
apple_genrule.bzl
universal_binary.bzl
2:13 (7%)
2:13 (17%)
view
12 x 2 lib
rules
apple_support.bzl
apple_genrule.bzl
2:13 (3%)
2:13 (21%)
view
12 x 2 lib
rules/private
xcode_support.bzl
apple_genrule.bzl
2:13 (32%)
2:13 (7%)
view
12 x 2 lib
rules
xcode_support.bzl
apple_genrule.bzl
2:13 (32%)
2:13 (21%)
view
12 x 2 lib
lib
transitions.bzl
xcode_support.bzl
2:13 (41%)
2:13 (32%)
view
12 x 2 lib
lib
lipo.bzl
xcode_support.bzl
2:13 (21%)
2:13 (32%)
view
12 x 2 lib
lib
repositories.bzl
transitions.bzl
2:13 (30%)
2:13 (41%)
view
12 x 2 lib
rules
transitions.bzl
apple_genrule.bzl
2:13 (41%)
2:13 (21%)
view