bazelbuild / bazel-central-registry
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
  • 24% duplication:
    • 880 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 215 duplicated lines
  • 40 duplicates
system24% (215 lines)
Duplication per Extension
yml38% (215 lines)
Duplication per Component (primary)
modules/protobuf100% (42 lines)
modules/bazel_skylib100% (32 lines)
modules/c-ares100% (32 lines)
modules/rules_nodejs100% (26 lines)
modules/stardoc78% (11 lines)
modules/rules_pkg78% (11 lines)
modules/aspect_bazel_lib84% (11 lines)
modules/rules_python68% (11 lines)
modules/boringssl75% (9 lines)
modules/grpc64% (9 lines)
modules/abseil-cpp75% (9 lines)
modules/aspect_rules_swc54% (6 lines)
modules/aspect_rules_js46% (6 lines)
tools0% (0 lines)
modules/rules_jni0% (0 lines)
modules/rules_android0% (0 lines)
modules/glog0% (0 lines)
modules/googletest0% (0 lines)
modules/apple_support0% (0 lines)
modules/rules_proto0% (0 lines)
modules/rules_java0% (0 lines)
modules/platforms0% (0 lines)
modules/rules_sh0% (0 lines)
modules/re20% (0 lines)
modules/zlib0% (0 lines)
modules/rules_cc0% (0 lines)
modules/gflags0% (0 lines)
modules/zstd-jni0% (0 lines)
modules/upb0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 40 duplicates...
Size#FoldersFilesLinesCode
21 x 2 modules/protobuf/3.19.0
modules/protobuf/3.19.2
presubmit.yml
presubmit.yml
1:23 (100%)
1:23 (100%)
view
16 x 2 modules/c-ares/1.15.0
modules/c-ares/1.16.1
presubmit.yml
presubmit.yml
1:16 (100%)
1:16 (100%)
view
16 x 2 modules/bazel_skylib/1.0.3
modules/bazel_skylib/1.1.1
presubmit.yml
presubmit.yml
1:16 (100%)
1:16 (100%)
view
13 x 2 modules/rules_nodejs/4.5.0
modules/rules_nodejs/4.5.1
presubmit.yml
presubmit.yml
1:14 (100%)
1:14 (100%)
view
11 x 2 modules/rules_nodejs/4.5.0
modules/rules_python/0.4.0
presubmit.yml
presubmit.yml
4:14 (84%)
7:17 (68%)
view
11 x 2 modules/rules_python/0.4.0
modules/stardoc/0.5.0
presubmit.yml
presubmit.yml
7:17 (68%)
6:16 (78%)
view
11 x 2 modules/rules_nodejs/4.5.0
modules/stardoc/0.5.0
presubmit.yml
presubmit.yml
4:14 (84%)
6:16 (78%)
view
11 x 2 modules/aspect_bazel_lib/0.4.2
modules/rules_nodejs/4.5.1
presubmit.yml
presubmit.yml
4:14 (84%)
4:14 (84%)
view
11 x 2 modules/aspect_bazel_lib/0.4.2
modules/rules_pkg/0.5.1
presubmit.yml
presubmit.yml
4:14 (84%)
6:16 (78%)
view
11 x 2 modules/rules_pkg/0.5.1
modules/stardoc/0.5.0
presubmit.yml
presubmit.yml
6:16 (78%)
6:16 (78%)
view
11 x 2 modules/aspect_bazel_lib/0.4.2
modules/rules_nodejs/4.5.0
presubmit.yml
presubmit.yml
4:14 (84%)
4:14 (84%)
view
11 x 2 modules/aspect_bazel_lib/0.4.2
modules/rules_python/0.4.0
presubmit.yml
presubmit.yml
4:14 (84%)
7:17 (68%)
view
11 x 2 modules/rules_nodejs/4.5.1
modules/stardoc/0.5.0
presubmit.yml
presubmit.yml
4:14 (84%)
6:16 (78%)
view
11 x 2 modules/rules_nodejs/4.5.1
modules/rules_pkg/0.5.1
presubmit.yml
presubmit.yml
4:14 (84%)
6:16 (78%)
view
11 x 2 modules/rules_nodejs/4.5.0
modules/rules_pkg/0.5.1
presubmit.yml
presubmit.yml
4:14 (84%)
6:16 (78%)
view
11 x 2 modules/aspect_bazel_lib/0.4.2
modules/stardoc/0.5.0
presubmit.yml
presubmit.yml
4:14 (84%)
6:16 (78%)
view
11 x 2 modules/rules_nodejs/4.5.1
modules/rules_python/0.4.0
presubmit.yml
presubmit.yml
4:14 (84%)
7:17 (68%)
view
11 x 2 modules/rules_pkg/0.5.1
modules/rules_python/0.4.0
presubmit.yml
presubmit.yml
6:16 (78%)
7:17 (68%)
view
9 x 2 modules/abseil-cpp/20210324.2
modules/grpc/1.41.0
presubmit.yml
presubmit.yml
5:17 (75%)
7:19 (64%)
view
9 x 2 modules/boringssl/0.0.0-20211025-d4f1ab9
modules/grpc/1.41.0
presubmit.yml
presubmit.yml
5:17 (75%)
7:19 (64%)
view