apple / swift-installer-scripts
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
  • 38% duplication:
    • 2,228 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 851 duplicated lines
  • 42 duplicates
system38% (851 lines)
Duplication per Extension
spec87% (737 lines)
wixproj45% (74 lines)
cc8% (22 lines)
wxs2% (18 lines)
Duplication per Component (primary)
Linux/RPM/Fedora/34100% (143 lines)
Linux/RPM/Fedora/rawhide100% (143 lines)
Linux/RPM/Fedora/35100% (143 lines)
Linux/RPM/Centos/778% (108 lines)
Linux/RPM/Centos/875% (105 lines)
Linux/RPM/Amazonlinux/268% (95 lines)
Windows9% (92 lines)
Windows/CustomActions/SwiftInstaller/Sources8% (22 lines)
Linux/RPM0% (0 lines)
Windows/CustomActions/SwiftInstaller/Headers0% (0 lines)
Windows/CustomActions/SwiftInstaller0% (0 lines)

Duplication Between Components (50+ lines)

G Linux/RPM/Fedora/35 Linux/RPM/Fedora/35 Linux/RPM/Fedora/rawhide Linux/RPM/Fedora/rawhide Linux/RPM/Fedora/35--Linux/RPM/Fedora/rawhide 286 Linux/RPM/Fedora/34 Linux/RPM/Fedora/34 Linux/RPM/Fedora/34--Linux/RPM/Fedora/35 286 Linux/RPM/Fedora/34--Linux/RPM/Fedora/rawhide 286 Linux/RPM/Centos/7 Linux/RPM/Centos/7 Linux/RPM/Centos/8 Linux/RPM/Centos/8 Linux/RPM/Centos/7--Linux/RPM/Centos/8 210 Linux/RPM/Amazonlinux/2 Linux/RPM/Amazonlinux/2 Linux/RPM/Amazonlinux/2--Linux/RPM/Centos/7 190 Linux/RPM/Amazonlinux/2--Linux/RPM/Centos/8 184

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 42 duplicates...
Size#FoldersFilesLinesCode
143 x 2 platforms/Linux/RPM/Fedora/35
platforms/Linux/RPM/Fedora/rawhide
spec
swiftlang.spec
swiftlang.spec
1:172 (100%)
1:172 (100%)
view
143 x 2 platforms/Linux/RPM/Fedora/34
platforms/Linux/RPM/Fedora/35
spec
swiftlang.spec
swiftlang.spec
1:172 (100%)
1:172 (100%)
view
143 x 2 platforms/Linux/RPM/Fedora/34
platforms/Linux/RPM/Fedora/rawhide
spec
swiftlang.spec
swiftlang.spec
1:172 (100%)
1:172 (100%)
view
45 x 2 platforms/Linux/RPM/Amazonlinux/2
platforms/Linux/RPM/Centos/7
spec
swiftlang.spec
swiftlang.spec
81:134 (32%)
81:134 (32%)
view
45 x 2 platforms/Linux/RPM/Centos/7
platforms/Linux/RPM/Centos/8
spec
swiftlang.spec
swiftlang.spec
77:129 (32%)
76:128 (32%)
view
42 x 2 platforms/Linux/RPM/Amazonlinux/2
platforms/Linux/RPM/Centos/8
spec
swiftlang.spec
swiftlang.spec
81:129 (30%)
80:128 (30%)
view
32 x 2 platforms/Linux/RPM/Centos/7
platforms/Linux/RPM/Centos/8
spec
swiftlang.spec
swiftlang.spec
1:37 (23%)
1:37 (23%)
view
31 x 2 platforms/Linux/RPM/Amazonlinux/2
platforms/Linux/RPM/Centos/7
spec
swiftlang.spec
swiftlang.spec
1:35 (22%)
1:35 (22%)
view
31 x 2 platforms/Linux/RPM/Amazonlinux/2
platforms/Linux/RPM/Centos/8
spec
swiftlang.spec
swiftlang.spec
1:35 (22%)
1:35 (22%)
view
19 x 2 platforms/Linux/RPM/Amazonlinux/2
platforms/Linux/RPM/Centos/7
spec
swiftlang.spec
swiftlang.spec
137:158 (13%)
137:158 (13%)
view
19 x 2 platforms/Linux/RPM/Centos/7
platforms/Linux/RPM/Centos/8
spec
swiftlang.spec
swiftlang.spec
137:158 (13%)
139:160 (13%)
view
19 x 2 platforms/Linux/RPM/Amazonlinux/2
platforms/Linux/RPM/Centos/8
spec
swiftlang.spec
swiftlang.spec
137:158 (13%)
139:160 (13%)
view
11 x 2 platforms/Windows/Custom.../SwiftInstaller/Sources
platforms/Windows/Custom.../SwiftInstaller/Sources
swift_installer.cc
swift_installer.cc
318:331 (5%)
346:359 (5%)
view
10 x 2 platforms/Linux/RPM/Amazonlinux/2
platforms/Linux/RPM/Fedora/rawhide
spec
swiftlang.spec
swiftlang.spec
147:158 (7%)
159:172 (6%)
view
10 x 2 platforms/Linux/RPM/Amazonlinux/2
platforms/Linux/RPM/Fedora/34
spec
swiftlang.spec
swiftlang.spec
147:158 (7%)
159:172 (6%)
view
10 x 2 platforms/Linux/RPM/Centos/8
platforms/Linux/RPM/Fedora/34
spec
swiftlang.spec
swiftlang.spec
149:160 (7%)
159:172 (6%)
view
10 x 2 platforms/Linux/RPM/Centos/7
platforms/Linux/RPM/Fedora/rawhide
spec
swiftlang.spec
swiftlang.spec
147:158 (7%)
159:172 (6%)
view
10 x 2 platforms/Linux/RPM/Centos/8
platforms/Linux/RPM/Fedora/rawhide
spec
swiftlang.spec
swiftlang.spec
149:160 (7%)
159:172 (6%)
view
10 x 2 platforms/Linux/RPM/Centos/7
platforms/Linux/RPM/Fedora/35
spec
swiftlang.spec
swiftlang.spec
147:158 (7%)
159:172 (6%)
view
10 x 2 platforms/Linux/RPM/Centos/8
platforms/Linux/RPM/Fedora/35
spec
swiftlang.spec
swiftlang.spec
149:160 (7%)
159:172 (6%)
view