apple / swift-tools-support-async
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
  • 1% duplication:
    • 4,265 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 46 duplicated lines
  • 4 duplicates
system1% (46 lines)
Duplication per Extension
proto22% (26 lines)
swift<1% (20 lines)
Duplication per Component (primary)
Sources/TSFCASFileTree/Internal3% (20 lines)
Protos/CASProtocol56% (18 lines)
Protos/CASFileTreeProtocol9% (8 lines)
ROOT0% (0 lines)
Sources/CBLAKE30% (0 lines)
Sources/TSFCAS0% (0 lines)
Sources/TSFCAS/Generated0% (0 lines)
Sources/TSFCAS/Implementations0% (0 lines)
Sources/TSFCASFileTree0% (0 lines)
Sources/TSFCASFileTree/Generated0% (0 lines)
Sources/TSFCASUtilities0% (0 lines)
Sources/TSFFutures0% (0 lines)
Sources/TSFUtility0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
10 x 2 Sources/TSFCASFileTree/Internal
Sources/TSFCASFileTree/Internal
ConcurrentFilesystemScanner.swift
ConcurrentFilesystemScanner.swift
443:452 (3%)
456:465 (3%)
view
9 x 2 Protos/CASProtocol
Protos/CASProtocol
proto
cas_object.proto
data_id.proto
1:11 (56%)
1:11 (56%)
view
8 x 2 Protos/CASFileTreeProtocol
Protos/CASProtocol
proto
file_tree.proto
data_id.proto
1:9 (9%)
1:9 (50%)
view
8 x 2 Protos/CASFileTreeProtocol
Protos/CASProtocol
proto
file_tree.proto
cas_object.proto
1:9 (9%)
1:9 (50%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 Sources/TSFCASFileTree
Sources/TSFCASFileTree
FilesystemObject.swift
FilesystemObject.swift
92:99 
101:108 
view