bazelbuild / rules_jvm_external
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:
    • 3,276 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 387 duplicated lines
  • 36 duplicates
system11% (387 lines)
Duplication per Extension
bzl11% (387 lines)
Duplication per Component (primary)
ROOT10% (154 lines)
private/rules10% (130 lines)
private16% (103 lines)
private/templates0% (0 lines)
migration0% (0 lines)
settings0% (0 lines)

Duplication Between Components (50+ lines)

G ROOT ROOT private private ROOT--private 60

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 36 duplicates...
Size#FoldersFilesLinesCode
20 x 2 ROOT
ROOT
coursier.bzl
coursier.bzl
517:536 (1%)
1014:1033 (1%)
view
16 x 2 ROOT
ROOT
coursier.bzl
coursier.bzl
1160:1176 (1%)
1220:1236 (1%)
view
15 x 2 private/rules
private/rules
java_export.bzl
kt_jvm_export.bzl
72:87 (10%)
70:85 (21%)
view
14 x 2 private
private
dependency_tree_parser.bzl
dependency_tree_parser.bzl
274:287 (3%)
297:310 (3%)
view
14 x 2 private/rules
private/rules
java_export.bzl
kt_jvm_export.bzl
17:33 (9%)
16:32 (19%)
view
13 x 2 ROOT
ROOT
defs.bzl
kt_defs.bzl
1:13 (43%)
1:13 (72%)
view
13 x 2 private
private
dependency_tree_parser.bzl
dependency_tree_parser.bzl
237:249 (3%)
297:309 (3%)
view
13 x 2 private
private
dependency_tree_parser.bzl
dependency_tree_parser.bzl
237:249 (3%)
274:286 (3%)
view
12 x 2 ROOT
private
coursier.bzl
dependency_tree_parser.bzl
1:12 (1%)
1:12 (3%)
view
12 x 2 ROOT
private
defs.bzl
coursier_utilities.bzl
1:12 (40%)
1:12 (16%)
view
12 x 2 private
private
dependency_tree_parser.bzl
dependency_tree_parser.bzl
217:228 (3%)
297:308 (3%)
view
12 x 2 ROOT
private
defs.bzl
dependency_tree_parser.bzl
1:12 (40%)
1:12 (3%)
view
12 x 2 ROOT
private
kt_defs.bzl
dependency_tree_parser.bzl
1:12 (66%)
1:12 (3%)
view
12 x 2 ROOT
private
kt_defs.bzl
coursier_utilities.bzl
1:12 (66%)
1:12 (16%)
view
12 x 2 private
private
coursier_utilities.bzl
dependency_tree_parser.bzl
1:12 (16%)
1:12 (3%)
view
12 x 2 private
private
dependency_tree_parser.bzl
dependency_tree_parser.bzl
217:228 (3%)
274:285 (3%)
view
12 x 2 ROOT
ROOT
coursier.bzl
kt_defs.bzl
1:12 (1%)
1:12 (66%)
view
12 x 2 private
private
dependency_tree_parser.bzl
dependency_tree_parser.bzl
217:228 (3%)
237:248 (3%)
view
12 x 2 ROOT
ROOT
coursier.bzl
defs.bzl
1:12 (1%)
1:12 (40%)
view
12 x 2 ROOT
private
coursier.bzl
coursier_utilities.bzl
1:12 (1%)
1:12 (16%)
view