microsoft / fsharplu
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
  • 3% duplication:
    • 13,397 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 466 duplicated lines
  • 33 duplicates
system3% (466 lines)
Duplication per Extension
fs2% (371 lines)
fsproj21% (65 lines)
yml64% (16 lines)
fsx5% (14 lines)
Duplication per Component (primary)
FSharpLu.Json16% (154 lines)
FSharpLu.Azure2% (146 lines)
FSharpLu2% (124 lines)
FSharpLu.Windows1% (26 lines)
ROOT41% (16 lines)
FSharpLu.Json/Scripts0% (0 lines)
FSharpLu.Windows.Sample0% (0 lines)
scripts0% (0 lines)

Duplication Between Components (50+ lines)

G FSharpLu.Json FSharpLu.Json FSharpLu.Windows FSharpLu.Windows FSharpLu.Json--FSharpLu.Windows 52

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 33 duplicates...
Size#FoldersFilesLinesCode
27 x 2 FSharpLu.Json
FSharpLu.Json
fs
Compact.fs
Compact.fs
404:430 (6%)
467:493 (6%)
view
18 x 2 FSharpLu.Json
FSharpLu.Json
fs
Compact.fs
Default.fs
369:386 (4%)
34:51 (39%)
view
13 x 2 FSharpLu.Azure
FSharpLu.Azure
fs
ResourceGroup.fs
ResourceGroup.fs
731:743 (1%)
767:779 (1%)
view
13 x 2 FSharpLu.Json
FSharpLu.Windows
fsproj
FSharpLu.Json.fsproj
FSharpLu.Windows.fsproj
39:54 (23%)
55:70 (19%)
view
9 x 2 FSharpLu
FSharpLu
fs
TraceLogging.fs
TraceLogging.fs
33:41 (2%)
111:119 (2%)
view
8 x 2 ROOT
ROOT
pipeline-sign.yml
pipeline-signrelease.yml
10:19 (88%)
10:19 (88%)
view
8 x 2 FSharpLu.Azure
FSharpLu.Azure
fs
AzureFiles.fs
AzureFiles.fs
118:125 (1%)
180:187 (1%)
view
7 x 2 FSharpLu.Azure
FSharpLu.Azure
fs
AppInsightsTelemetryGetter.fs
AzureMetrics.fs
23:29 (6%)
43:49 (10%)
view
7 x 2 FSharpLu.Json
FSharpLu
fsproj
FSharpLu.Json.fsproj
FSharpLu.fsproj
39:46 (12%)
37:44 (7%)
view
7 x 2 FSharpLu
FSharpLu
fs
QueueScheduler.fs
QueueScheduler.fs
66:72 (1%)
85:91 (1%)
view
7 x 2 FSharpLu.Json
FSharpLu.Windows
fsproj
FSharpLu.Json.fsproj
FSharpLu.Windows.fsproj
12:18 (12%)
12:18 (10%)
view
7 x 2 FSharpLu.Windows
FSharpLu
fsproj
FSharpLu.Windows.fsproj
FSharpLu.fsproj
55:62 (10%)
37:44 (7%)
view
7 x 2 FSharpLu.Azure
FSharpLu.Azure
fs
AzureVault.fs
AzureVault.fs
101:108 (1%)
127:134 (1%)
view
7 x 2 FSharpLu.Azure
FSharpLu.Azure
fs
AzureVM.fs
AzureVM.fs
576:582 (<1%)
595:601 (<1%)
view
7 x 2 FSharpLu.Azure
FSharpLu.Azure
fs
AzureVM.fs
AzureVM.fs
953:960 (<1%)
975:982 (<1%)
view
7 x 2 FSharpLu
FSharpLu
fs
QueueScheduler.fs
QueueScheduler.fs
452:458 (1%)
464:470 (1%)
view
7 x 2 FSharpLu
FSharpLu
fs
Async.fs
Async.fs
138:145 (1%)
157:163 (1%)
view
7 x 2 FSharpLu
FSharpLu
fs
Async.fs
Async.fs
172:179 (1%)
192:199 (1%)
view
7 x 2 FSharpLu.Json
FSharpLu.Json
fsx
Script.fsx
Test-Scrict.fsx
3:10 (6%)
5:12 (5%)
view
6 x 2 FSharpLu
FSharpLu
fs
StateMachine.fs
StateMachine.fs
9:14 (1%)
73:78 (1%)
view