bazelbuild / rules_android
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
  • 26% duplication:
    • 892 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 234 duplicated lines
  • 153 duplicates
system26% (234 lines)
Duplication per Extension
bzl26% (234 lines)
Duplication per Component (primary)
android26% (221 lines)
android/toolchains/emulator22% (13 lines)

Duplication Between Components (50+ lines)

G android android android/toolchains/emulator android/toolchains/emulator android--android/toolchains/emulator 224

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 153 duplicates...
Size#FoldersFilesLinesCode
13 x 2 android
android
aar_import.bzl
android_tools_defaults_jar.bzl
1:13 (61%)
1:13 (65%)
view
13 x 2 android
android/toolchains/emulator
android_instrumentation_test_addons.bzl
toolchain.bzl
1:13 (21%)
1:13 (22%)
view
13 x 2 android
android
android_tools_defaults_jar.bzl
rules.bzl
1:13 (65%)
1:13 (13%)
view
13 x 2 android
android/toolchains/emulator
android_binary.bzl
toolchain.bzl
1:13 (61%)
1:13 (22%)
view
13 x 2 android
android
android_device.bzl
android_sdk_repository.bzl
1:13 (61%)
1:13 (61%)
view
13 x 2 android
android
attrs.bzl
migration_tag_DONOTUSE.bzl
1:13 (11%)
1:13 (59%)
view
13 x 2 android
android
aar_import.bzl
apk_import.bzl
1:13 (61%)
1:13 (46%)
view
13 x 2 android
android
android_library.bzl
migration_tag_DONOTUSE.bzl
1:13 (59%)
1:13 (59%)
view
13 x 2 android
android
android_host_service_fixture.bzl
providers.bzl
1:13 (61%)
1:13 (12%)
view
13 x 2 android
android
android_binary.bzl
android_tools_defaults_jar.bzl
1:13 (61%)
1:13 (65%)
view
13 x 2 android
android
android_device_script_fixture.bzl
android_sdk_repository.bzl
1:13 (61%)
1:13 (61%)
view
13 x 2 android
android
android_host_service_fixture.bzl
android_sdk_repository.bzl
1:13 (61%)
1:13 (61%)
view
13 x 2 android
android/toolchains/emulator
rules.bzl
toolchain.bzl
1:13 (13%)
1:13 (22%)
view
13 x 2 android
android
android_binary.bzl
android_sdk.bzl
1:13 (61%)
1:13 (61%)
view
13 x 2 android
android
migration_tag_DONOTUSE.bzl
providers.bzl
1:13 (59%)
1:13 (12%)
view
13 x 2 android
android
android_binary.bzl
rules.bzl
1:13 (61%)
1:13 (13%)
view
13 x 2 android
android/toolchains/emulator
apk_import.bzl
toolchain.bzl
1:13 (46%)
1:13 (22%)
view
13 x 2 android
android
android_library.bzl
providers.bzl
1:13 (59%)
1:13 (12%)
view
13 x 2 android
android
android_tools_defaults_jar.bzl
apk_import.bzl
1:13 (65%)
1:13 (46%)
view
13 x 2 android
android
android_sdk_repository.bzl
migration_tag_DONOTUSE.bzl
1:13 (61%)
1:13 (59%)
view