GerritCodeReview / plugins_examples
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
  • 100% duplication:
    • 744 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 744 duplicated lines
  • 930 duplicates
system100% (744 lines)
Duplication per Extension
bzl100% (744 lines)
Duplication per Component (primary)
example-sshCommandDelegateDynamicBean100% (24 lines)
example-changeHasOperator100% (24 lines)
example-restApiGetRevision100% (24 lines)
example-deployedOnIncludedInExtension100% (24 lines)
example-restApiCommandOption100% (24 lines)
example-simpleSshCommand100% (24 lines)
example-validationListenerMerge100% (24 lines)
example-commitValidator100% (24 lines)
example-consoleMetricReporter100% (24 lines)
example-webLinkPatchSet100% (24 lines)
example-changeOperator100% (24 lines)
example-webLinkProject100% (24 lines)
example-changeQueryAttributes100% (24 lines)
example-sshCommandOption100% (24 lines)
example-usageDataLogger100% (24 lines)
example-restApiPostRevision100% (24 lines)
example-adminSshCommand100% (24 lines)
example-validationListenerAssignee100% (24 lines)
example-restApiPostProject100% (24 lines)
example-servlet100% (24 lines)
example-webLinkBranch100% (24 lines)
example-validationListenerUpload100% (24 lines)
example-sshAndRestCommandOptionBeanParseListener100% (24 lines)
example-topMenu100% (24 lines)
example-validationListenerHashtag100% (24 lines)
example-validationListenerCommit100% (24 lines)
example-validationListenerRefOperation100% (24 lines)
example-sshCommandAlias100% (24 lines)
example-validationListenerNewProjectCreated100% (24 lines)
example-webLinkFileHistory100% (24 lines)
ROOT100% (17 lines)
tools100% (7 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 930 duplicates...
Size#FoldersFilesLinesCode
17 x 2 example-validationListenerHashtag
example-webLinkPatchSet
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-restApiCommandOption
example-servlet
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-topMenu
example-validationListenerCommit
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-changeQueryAttributes
example-topMenu
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-validationListenerUpload
example-webLinkBranch
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-validationListenerUpload
example-webLinkProject
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-adminSshCommand
example-validationListenerUpload
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-sshCommandAlias
example-validationListenerNewProjectCreated
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-simpleSshCommand
example-sshCommandOption
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-sshAndRestCommandOptionBeanParseListener
example-validationListenerNewProjectCreated
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-restApiPostProject
example-servlet
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-sshCommandOption
example-validationListenerRefOperation
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-sshAndRestCommandOptionBeanParseListener
example-validationListenerAssignee
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-changeQueryAttributes
example-simpleSshCommand
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-restApiPostRevision
example-webLinkPatchSet
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-changeOperator
example-restApiPostProject
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-changeHasOperator
example-sshCommandAlias
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-validationListenerCommit
example-webLinkBranch
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-topMenu
example-validationListenerAssignee
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view
17 x 2 example-webLinkBranch
example-webLinkPatchSet
bazlets.bzl
bazlets.bzl
1:19 (100%)
1:19 (100%)
view