GerritCodeReview / plugins_find-owners
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
  • 5% duplication:
    • 2,257 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 114 duplicated lines
  • 11 duplicates
system5% (114 lines)
Duplication per Extension
java7% (114 lines)
Duplication per Component (primary)
java/com/googlesource/gerrit/plugins/findowners7% (114 lines)
prolog0% (0 lines)
resources/static0% (0 lines)
java/find_owners0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Cache.java
Cache.java
153:164 (9%)
176:187 (9%)
view
11 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Cache.java
Cache.java
154:164 (8%)
193:203 (8%)
view
11 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Cache.java
Cache.java
177:187 (8%)
193:203 (8%)
view
9 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
OwnersDb.java
OwnersDb.java
120:128 (2%)
157:165 (2%)
view
7 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Cache.java
Cache.java
95:101 (5%)
115:121 (5%)
view
7 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Action.java
Cache.java
168:174 (5%)
104:110 (5%)
view
6 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Cache.java
Cache.java
95:100 (4%)
141:146 (4%)
view
6 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Cache.java
Cache.java
115:120 (4%)
141:146 (4%)
view
6 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Parser.java
Parser.java
156:161 (2%)
166:171 (2%)
view
6 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Cache.java
Cache.java
103:108 (4%)
127:132 (4%)
view
6 x 2 src/main/java/com/google...rrit/plugins/findowners
src/main/java/com/google...rrit/plugins/findowners
Cache.java
OwnersDb.java
143:148 (4%)
78:83 (1%)
view