bazelbuild / rules_java
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
  • 11% duplication:
    • 1,476 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 166 duplicated lines
  • 48 duplicates
system11% (166 lines)
Duplication per Extension
bzl12% (166 lines)
Duplication per Component (primary)
toolchains11% (101 lines)
java6% (39 lines)
ROOT76% (26 lines)

Duplication Between Components (50+ lines)

G java java toolchains toolchains java--toolchains 102 ROOT ROOT ROOT--java 64 ROOT--toolchains 87

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 48 duplicates...
Size#FoldersFilesLinesCode
13 x 2 toolchains
toolchains
default_java_toolchain.bzl
local_java_repository.bzl
1:13 (4%)
1:13 (5%)
view
13 x 2 java
toolchains
defs.bzl
java_toolchain_alias.bzl
1:13 (12%)
1:13 (12%)
view
13 x 2 ROOT
java
internal_setup.bzl
defs.bzl
1:13 (81%)
1:13 (12%)
view
13 x 2 ROOT
java
internal_setup.bzl
repositories.bzl
1:13 (81%)
1:13 (2%)
view
13 x 2 ROOT
toolchains
internal_deps.bzl
java_toolchain_alias.bzl
1:13 (72%)
1:13 (12%)
view
13 x 2 toolchains
toolchains
fail_rule.bzl
remote_java_repository.bzl
1:13 (40%)
1:13 (16%)
view
13 x 2 java
toolchains
extensions.bzl
default_java_toolchain.bzl
1:13 (56%)
1:13 (4%)
view
13 x 2 ROOT
java
internal_deps.bzl
repositories.bzl
1:13 (72%)
1:13 (2%)
view
13 x 2 java
java
defs.bzl
repositories.bzl
1:13 (12%)
1:13 (2%)
view
13 x 2 ROOT
toolchains
internal_setup.bzl
java_toolchain_alias.bzl
1:13 (81%)
1:13 (12%)
view
13 x 2 ROOT
java
internal_deps.bzl
defs.bzl
1:13 (72%)
1:13 (12%)
view
13 x 2 java
toolchains
repositories.bzl
java_toolchain_alias.bzl
1:13 (2%)
1:13 (12%)
view
13 x 2 java
toolchains
extensions.bzl
local_java_repository.bzl
1:13 (56%)
1:13 (5%)
view
13 x 2 ROOT
ROOT
internal_deps.bzl
internal_setup.bzl
1:13 (72%)
1:13 (81%)
view
12 x 2 java
java
defs.bzl
extensions.bzl
2:13 (11%)
2:13 (52%)
view
12 x 2 toolchains
toolchains
default_java_toolchain.bzl
java_toolchain_alias.bzl
2:13 (4%)
2:13 (11%)
view
12 x 2 java
toolchains
extensions.bzl
remote_java_repository.bzl
2:13 (52%)
2:13 (15%)
view
12 x 2 toolchains
toolchains
fail_rule.bzl
local_java_repository.bzl
2:13 (37%)
2:13 (5%)
view
12 x 2 java
toolchains
extensions.bzl
java_toolchain_alias.bzl
2:13 (52%)
2:13 (11%)
view
12 x 2 java
toolchains
defs.bzl
local_java_repository.bzl
2:13 (11%)
2:13 (5%)
view