bazelbuild / rules_groovy
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
  • 20% duplication:
    • 445 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 92 duplicated lines
  • 6 duplicates
system20% (92 lines)
Duplication per Extension
bzl20% (92 lines)
Duplication per Component (primary)
groovy20% (92 lines)
example/src/main/groovy/lib0% (0 lines)
example/src/main/groovy/app0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
12 x 2 groovy
groovy
groovy.bzl
repositories.bzl
2:13 (3%)
2:13 (15%)
view
8 x 2 groovy
groovy
groovy.bzl
groovy.bzl
298:305 (2%)
347:354 (2%)
view
8 x 2 groovy
groovy
groovy.bzl
groovy.bzl
327:335 (2%)
385:393 (2%)
view
6 x 2 groovy
groovy
groovy.bzl
groovy.bzl
312:317 (1%)
367:372 (1%)
view
6 x 2 groovy
groovy
groovy.bzl
groovy.bzl
28:33 (1%)
217:222 (1%)
view
6 x 2 groovy
groovy
groovy.bzl
groovy.bzl
337:342 (1%)
395:400 (1%)
view