aws / aws-toolkit-jetbrains
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
  • 16% duplication:
    • 58,497 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 9,914 duplicated lines
  • 1,642 duplicates
system16% (9,914 lines)
Duplication per Extension
kt16% (9,429 lines)
java66% (254 lines)
yml13% (73 lines)
cs9% (68 lines)
kts8% (66 lines)
yaml72% (24 lines)
Duplication per Component (primary)
jetbrains-core16% (7,621 lines)
jetbrains-ultimate27% (1,240 lines)
jetbrains-rider28% (888 lines)
buildspec30% (73 lines)
buildSrc5% (50 lines)
core<1% (14 lines)
detekt-rules2% (12 lines)
ROOT9% (10 lines)
intellij15% (6 lines)
sdk-codegen0% (0 lines)
gradle0% (0 lines)
resources0% (0 lines)

Duplication Between Components (50+ lines)

G jetbrains-core jetbrains-core jetbrains-ultimate jetbrains-ultimate jetbrains-core--jetbrains-ultimate 562 jetbrains-rider jetbrains-rider jetbrains-core--jetbrains-rider 204 jetbrains-rider--jetbrains-ultimate 80

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 1,642 duplicates...
Size#FoldersFilesLinesCode
140 x 2 jetbrains-rider/src-211-...ins/services/clouddebug
jetbrains-rider/src-213+...ins/services/clouddebug
DotNetDebuggerSupport.kt
DotNetDebuggerSupport.kt
4:257 (61%)
4:257 (61%)
view
88 x 2 jetbrains-rider/src-211-...ins/services/clouddebug
jetbrains-rider/src-213+...ins/services/clouddebug
DotNetDebuggerSupport.kt
DotNetDebuggerSupport.kt
259:397 (38%)
259:397 (38%)
view
65 x 2 jetbrains-ultimate/tst-212/com/goide/vgo
jetbrains-ultimate/tst-213+/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
39:123 (75%)
40:124 (75%)
view
59 x 2 jetbrains-core/tst/softw...services/cloudformation
jetbrains-core/tst/softw...services/cloudformation
CreateWaiterTest.kt
UpdateWaiterTest.kt
112:183 (49%)
97:168 (53%)
view
55 x 2 jetbrains-core/tst/softw...ains/services/telemetry
jetbrains-core/tst/softw...ains/services/telemetry
DefaultTelemetryPublisherTest.kt
DefaultTelemetryPublisherTest.kt
38:100 (42%)
106:168 (42%)
view
50 x 2 jetbrains-rider/src-211-.../services/lambda/dotnet
jetbrains-rider/src-213+.../services/lambda/dotnet
DotnetDebugUtils.kt
DotnetDebugUtils.kt
4:120 (45%)
4:117 (50%)
view
43 x 2 jetbrains-ultimate/tst-211/com/goide/vgo
jetbrains-ultimate/tst-212/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
67:124 (50%)
67:124 (50%)
view
42 x 2 jetbrains-ultimate/tst-211/com/goide/vgo
jetbrains-ultimate/tst-213+/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
67:123 (48%)
68:124 (48%)
view
36 x 2 jetbrains-rider/src-211-.../services/lambda/dotnet
jetbrains-rider/src-213+.../services/lambda/dotnet
DotnetDebugUtils.kt
DotnetDebugUtils.kt
122:178 (32%)
119:175 (36%)
view
25 x 2 jetbrains-core/src/softw...s/services/lambda/steps
jetbrains-core/src/softw...s/services/lambda/steps
LambdaWorkflows.kt
LambdaWorkflows.kt
77:102 (11%)
166:191 (11%)
view
25 x 2 jetbrains-core/src/softw...s/services/lambda/steps
jetbrains-core/src/softw...s/services/lambda/steps
LambdaWorkflows.kt
LambdaWorkflows.kt
37:64 (11%)
125:152 (11%)
view
24 x 2 jetbrains-core/tst/softw...ces/cloudformation/yaml
jetbrains-core/tst/softw...ins/services/lambda/sam
YamlCloudFormationTemplateTest.kt
SamCommonTest.kt
377:400 (7%)
230:253 (12%)
view
22 x 2 jetbrains-ultimate/tst-211/com/goide/vgo
jetbrains-ultimate/tst-213+/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
39:63 (25%)
40:64 (25%)
view
22 x 2 jetbrains-ultimate/tst-211/com/goide/vgo
jetbrains-ultimate/tst-212/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
39:63 (25%)
39:63 (25%)
view
22 x 2 jetbrains-core/tst/softw...ains/services/s3/editor
jetbrains-core/tst/softw...ains/services/s3/editor
S3TreeObjectNodeTest.kt
S3TreeObjectNodeTest.kt
258:282 (7%)
308:332 (7%)
view
21 x 2 jetbrains-core/tst/softw...services/cloudformation
jetbrains-core/tst/softw...services/cloudformation
CreateWaiterTest.kt
DeleteWaiterTest.kt
112:138 (17%)
110:136 (17%)
view
21 x 2 jetbrains-core/tst/softw...re/credentials/profiles
jetbrains-core/tst/softw...re/credentials/profiles
ProfileCredentialProviderFactoryTest.kt
ProfileCredentialProviderFactoryTest.kt
292:316 (4%)
345:369 (4%)
view
21 x 2 jetbrains-core/tst/softw...ns/services/lambda/java
jetbrains-core/tst/softw...ns/services/lambda/java
JavaLambdaHandlerResolverTest.kt
JavaLambdaLineMarkerTest.kt
30:62 (6%)
29:61 (6%)
view
21 x 2 jetbrains-core/tst/softw...services/cloudformation
jetbrains-core/tst/softw...services/cloudformation
DeleteWaiterTest.kt
UpdateWaiterTest.kt
110:136 (17%)
97:123 (18%)
view
20 x 2 jetbrains-ultimate/tst-212/com/goide/vgo
jetbrains-ultimate/tst-213+/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
126:153 (23%)
127:154 (23%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 26 unit duplicates...
Size#FoldersFilesLinesCode
59 x 2 jetbrains-core/tst/softw...ains/services/telemetry
jetbrains-core/tst/softw...ains/services/telemetry
DefaultTelemetryPublisherTest.kt
DefaultTelemetryPublisherTest.kt
37:102 
105:170 
view
40 x 2 jetbrains-rider/src-213+...ins/services/clouddebug
jetbrains-rider/src-211-...ins/services/clouddebug
DotNetDebuggerSupport.kt
DotNetDebuggerSupport.kt
90:135 
90:135 
view
19 x 2 jetbrains-core/tst/softw...kits/jetbrains/services
jetbrains-core/tst/softw...kits/jetbrains/services
RoleValidationTest.kt
RoleValidationTest.kt
58:77 
80:99 
view
19 x 2 jetbrains-rider/src-213+...ins/services/clouddebug
jetbrains-rider/src-211-...ins/services/clouddebug
DotNetDebuggerSupport.kt
DotNetDebuggerSupport.kt
180:204 
180:204 
view
17 x 2 jetbrains-rider/src-213+...ins/services/clouddebug
jetbrains-rider/src-211-...ins/services/clouddebug
DotNetDebuggerSupport.kt
DotNetDebuggerSupport.kt
137:158 
137:158 
view
15 x 2 jetbrains-core/tst/softw.../services/lambda/deploy
jetbrains-core/tst/softw.../services/lambda/deploy
DeploySamApplicationValidatorTest.kt
DeploySamApplicationValidatorTest.kt
227:243 
246:262 
view
15 x 2 jetbrains-rider/tst/soft.../lambda/execution/local
jetbrains-rider/tst/soft.../lambda/execution/local
DotNetLocalLambdaRunConfigurationTest.kt
DotNetLocalLambdaRunConfigurationTest.kt
63:79 
82:98 
view
14 x 2 jetbrains-rider/src-213+...ins/services/clouddebug
jetbrains-rider/src-211-...ins/services/clouddebug
DotNetDebuggerSupport.kt
DotNetDebuggerSupport.kt
160:178 
160:178 
view
12 x 2 jetbrains-rider/testData...dlersApp/src/HelloWorld
jetbrains-rider/testData...dlersApp/src/HelloWorld
FunctionWithOnlyLambdaContext.cs
FunctionWithObjectReturn.cs
17:30 
17:30 
view
12 x 3 jetbrains-ultimate/tst-211/com/goide/vgo
jetbrains-ultimate/tst-213+/com/goide/vgo
jetbrains-ultimate/tst-212/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
VgoTestUtil.java
82:95 
83:96 
82:95 
view
11 x 2 jetbrains-core/tst/softw.../services/lambda/upload
jetbrains-core/tst/softw.../services/lambda/upload
CreateLambdaFunctionActionTest.kt
CreateLambdaFunctionActionTest.kt
117:131 
134:148 
view
11 x 3 jetbrains-ultimate/tst-211/com/goide/vgo
jetbrains-ultimate/tst-213+/com/goide/vgo
jetbrains-ultimate/tst-212/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
VgoTestUtil.java
108:120 
109:121 
108:120 
view
11 x 2 jetbrains-ultimate/tst/s...s/jetbrains/utils/rules
jetbrains-ultimate/tst/s...s/jetbrains/utils/rules
NodeJsCodeInsightTestFixtureRule.kt
NodeJsCodeInsightTestFixtureRule.kt
45:57 
86:98 
view
10 x 2 jetbrains-ultimate/tst/s.../services/lambda/nodejs
jetbrains-ultimate/tst/s.../services/lambda/nodejs
NodeJsLambdaTypeScriptHandlerResolver...
NodeJsLambdaTypeScriptHandlerResolver...
26:37 
195:206 
view
9 x 3 jetbrains-ultimate/tst-211/com/goide/vgo
jetbrains-ultimate/tst-213+/com/goide/vgo
jetbrains-ultimate/tst-212/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
VgoTestUtil.java
145:154 
146:155 
145:154 
view
8 x 2 jetbrains-core/src/softw.../services/lambda/python
jetbrains-core/src/softw.../services/lambda/python
PythonSamProjectWizard.kt
PythonSamProjectWizard.kt
48:56 
75:83 
view
8 x 2 jetbrains-core/tst/softw...ervices/cloudwatch/logs
jetbrains-core/tst/softw...ervices/cloudwatch/logs
LogGroupSearchActorTest.kt
LogStreamListActorTest.kt
84:92 
156:164 
view
8 x 2 jetbrains-core/tst/softw...ervices/cloudwatch/logs
jetbrains-core/tst/softw...ervices/cloudwatch/logs
LogStreamFilterActorTest.kt
LogGroupActorTest.kt
113:121 
79:87 
view
8 x 3 jetbrains-ultimate/tst-211/com/goide/vgo
jetbrains-ultimate/tst-213+/com/goide/vgo
jetbrains-ultimate/tst-212/com/goide/vgo
VgoTestUtil.java
VgoTestUtil.java
VgoTestUtil.java
71:79 
72:80 
71:79 
view
7 x 2 jetbrains-core/tst/softw...ces/cloudformation/yaml
jetbrains-core/tst/softw...ces/cloudformation/yaml
YamlCloudFormationTemplateTest.kt
YamlCloudFormationTemplateTest.kt
287:295 
298:306 
view