bazelbuild / bazel-integration-testing
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
  • 12% duplication:
    • 418 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 54 duplicated lines
  • 6 duplicates
system12% (54 lines)
Duplication per Extension
bzl15% (54 lines)
Duplication per Component (primary)
tools12% (41 lines)
private15% (13 lines)

Duplication Between Components (50+ lines)

G private private tools tools private--tools 50

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
14 x 2 tools
tools
common.bzl
repositories.bzl
1:15 (28%)
1:15 (14%)
view
13 x 2 private
tools
format.bzl
import.bzl
1:13 (15%)
1:13 (12%)
view
12 x 2 private
tools
format.bzl
repositories.bzl
2:13 (14%)
2:13 (12%)
view
12 x 2 tools
tools
common.bzl
import.bzl
2:13 (24%)
2:13 (11%)
view
12 x 2 tools
tools
import.bzl
repositories.bzl
2:13 (11%)
2:13 (12%)
view
12 x 2 private
tools
format.bzl
common.bzl
2:13 (14%)
2:13 (24%)
view