aws-samples / amazon-ivs-broadcast-for-ios-demo
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
  • 4% duplication:
    • 2,877 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 118 duplicated lines
  • 9 duplicates
system4% (118 lines)
Duplication per Extension
swift4% (118 lines)
Duplication per Component (primary)
Broadcasting/Views/Settings11% (57 lines)
Broadcasting/Views/AutoConfiguration13% (31 lines)
Broadcasting/Helpers4% (18 lines)
Broadcasting/Views/Broadcasting3% (12 lines)
ReplayKitBroadcaster0% (0 lines)
Broadcasting0% (0 lines)
Broadcasting/Views0% (0 lines)
Broadcasting/Views/Onboarding0% (0 lines)
Broadcasting/Views/Components0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
17 x 2 Broadcasting/Views/AutoConfiguration
Broadcasting/Views/Settings
AutoConfiguration.swift
SettingsView.swift
128:148 (14%)
141:161 (12%)
view
8 x 2 Broadcasting/Views/Settings
Broadcasting/Views/Settings
Bitrate.swift
ResolutionAndFramerate.swift
138:146 (7%)
243:251 (4%)
view
7 x 2 Broadcasting/Views/AutoConfiguration
Broadcasting/Views/AutoConfiguration
ConfigurationSetup.swift
ConfigurationSummary.swift
28:34 (12%)
23:29 (10%)
view
6 x 2 Broadcasting/Helpers
Broadcasting/Helpers
Buttons.swift
Buttons.swift
82:88 (4%)
145:151 (4%)
view
6 x 2 Broadcasting/Helpers
Broadcasting/Helpers
Buttons.swift
Buttons.swift
63:69 (4%)
82:88 (4%)
view
6 x 2 Broadcasting/Helpers
Broadcasting/Helpers
Buttons.swift
Buttons.swift
63:69 (4%)
145:151 (4%)
view
6 x 2 Broadcasting/Views/Settings
Broadcasting/Views/Settings
CameraSelection.swift
Orientation.swift
14:20 (26%)
39:45 (13%)
view
6 x 2 Broadcasting/Views/Broadcasting
Broadcasting/Views/Broadcasting
Broadcast.swift
Broadcast.swift
88:93 (5%)
105:110 (5%)
view
6 x 2 Broadcasting/Views/Settings
Broadcasting/Views/Settings
ResolutionAndFramerate.swift
ResolutionAndFramerate.swift
93:99 (3%)
151:157 (3%)
view