android / android-studio-poet
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
  • 2% duplication:
    • 2,518 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 60 duplicated lines
  • 4 duplicates
system2% (60 lines)
Duplication per Extension
kt2% (60 lines)
Duplication per Component (primary)
aspoet/src/main/kotlin/com/google/androidstudiopoet/models3% (30 lines)
aspoet/src/main/kotlin/com/google/androidstudiopoet/converters20% (18 lines)
aspoet/src/main/kotlin/com/google/androidstudiopoet/generators1% (12 lines)
aspoet-input/src/main/kotlin/com/google/androidstudiopoet/input0% (0 lines)
aspoet/src/main/kotlin/com/google/androidstudiopoet/input0% (0 lines)
aspoet/src/main/kotlin/com/google/androidstudiopoet0% (0 lines)
aspoet/src/main/kotlin/com/google/androidstudiopoet/writers0% (0 lines)
aspoet/src/main/kotlin/com/google/androidstudiopoet/utils0% (0 lines)
aspoet/src/main/kotlin/com/google/androidstudiopoet/gradle0% (0 lines)
aspoet/src/main/kotlin/com/google/androidstudiopoet/deserializers0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
9 x 2 aspoet/src/main/kotlin/c...idstudiopoet/converters
aspoet/src/main/kotlin/c...idstudiopoet/converters
ConfigPojoToAndroidModuleConfigConver...
ConfigPojoToModuleConfigConverter.kt
28:40 (32%)
27:39 (52%)
view
9 x 2 aspoet/src/main/kotlin/c...ndroidstudiopoet/models
aspoet/src/main/kotlin/c...ndroidstudiopoet/models
JavaClassBlueprint.kt
KotlinClassBlueprint.kt
27:38 (45%)
28:40 (42%)
view
6 x 2 aspoet/src/main/kotlin/c...idstudiopoet/generators
aspoet/src/main/kotlin/c...erators/android_modules
ModuleBuildBazelGenerator.kt
AndroidModuleBuildBazelGenerator.kt
28:34 (31%)
29:35 (23%)
view
6 x 2 aspoet/src/main/kotlin/c...ndroidstudiopoet/models
aspoet/src/main/kotlin/c...ndroidstudiopoet/models
Topologies.kt
Topologies.kt
68:73 (3%)
82:87 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 aspoet/src/main/kotlin/c...ndroidstudiopoet/models
aspoet/src/main/kotlin/c...ndroidstudiopoet/models
KotlinTestClassBlueprint.kt
JavaTestClassBlueprint.kt
11:17 
11:17 
view