apple / swift-integration-tests
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 52 files with 588 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (261 lines of code)
    • 50 very small files (327 lines of code)
0% | 0% | 0% | 44% | 55%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cfg0% | 0% | 0% | 100% | 0%
py0% | 0% | 0% | 42% | 57%
swift0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 0% | 0% | 96% | 3%
test-snapshot-binaries0% | 0% | 0% | 99% | <1%
test-sourcekit-lsp0% | 0% | 0% | 0% | 100%
repl0% | 0% | 0% | 0% | 100%
test-swift-docc0% | 0% | 0% | 0% | 100%
test-lldb-with-swiftpm0% | 0% | 0% | 0% | 100%
test-complex-xctest-package0% | 0% | 0% | 0% | 100%
test-codecov-package0% | 0% | 0% | 0% | 100%
test-foundation-package0% | 0% | 0% | 0% | 100%
test-c-library-swiftpm0% | 0% | 0% | 0% | 100%
test-xctest-package0% | 0% | 0% | 0% | 100%
test-multi-compile-glibc0% | 0% | 0% | 0% | 100%
test-multi-compile0% | 0% | 0% | 0% | 100%
test-static-lib0% | 0% | 0% | 0% | 100%
test-import-glibc0% | 0% | 0% | 0% | 100%
test-static-stdlib0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cfg
lit.cfg
in root
155 -
linux_load_commands.py
in test-snapshot-binaries
106 8
test-sourcekit-lsp.py
in test-sourcekit-lsp
95 4
test-repl-darwin.py
in repl
24 1
Package.swift
in test-swift-docc/DocCTest
19 -
Package.swift
in test-codecov-package/foo
17 -
test-repl-glibc.py
in repl
13 -
main.swift
in test-xctest-package
12 1
DocCTest.swift
in test-swift-docc/DocCTest/Sources/DocCTest
10 -
Package.swift
in test-complex-xctest-package/SwiftCMixed
9 -
Package.swift
in test-lldb-with-swiftpm
9 -
Package.swift
in test-sourcekit-lsp/pkg
9 -
see.c
in test-complex-xctest-package/SwiftCMixed/Sources/see
7 1
Package.swift
in test-c-library-swiftpm/testApp
6 -
core.swift
in test-lldb-with-swiftpm/Sources/Core
6 -
swifty.swift
in test-complex-xctest-package/SwiftCMixed/Sources/swifty
5 1
main.swift
in test-foundation-package
5 -
test-foundation-networking-fetch.swift
in test-foundation-package
5 -
test-foundation-networking.swift
in test-foundation-package
5 -
clib.h
in test-sourcekit-lsp/pkg/Sources/clib/include
5 -
main.swift
in test-c-library-swiftpm/testApp
4 -
Package.swift
in test-c-library-swiftpm/z
4 -
foo.swift
in test-codecov-package/foo/Sources/foo
4 -
see.c
in test-lldb-with-swiftpm/Sources/See
4 1
hello.swift
in test-multi-compile-glibc
4 -
main.swift
in test-sourcekit-lsp/pkg/Sources/exec
4 -
lib.swift
in test-sourcekit-lsp/pkg/Sources/lib
4 -
test-foundation-xml.swift
in test-foundation-package
3 -
main.swift
in test-lldb-with-swiftpm/Sources/exec
3 -
hello.swift
in test-multi-compile
3 -
staticLib.swift
in test-static-lib
3 -
main.swift
in test-static-stdlib
3 -
import-glibc.swift
in test-import-glibc
2 -
clib.c
in test-sourcekit-lsp/pkg/Sources/clib
2 1
main.swift
in test-static-lib
2 -
basic.py
in root
1 -
debugging-flags-SR85.py
in root
1 -
example-package-dealer.py
in root
1 -
swift-build-self-host.py
in root
1 -
swift-compiler.py
in root
1 -
test.py
in test-c-library-swiftpm
1 -
see.h
in test-complex-xctest-package/SwiftCMixed/Sources/see/include
1 -
test-import-glibc.py
in test-import-glibc
1 -
see.h
in test-lldb-with-swiftpm/Sources/See/include
1 -
goodbye.swift
in test-multi-compile-glibc
1 -
main.swift
in test-multi-compile-glibc
1 -
swift-multi-compile-glibc.py
in test-multi-compile-glibc
1 -
goodbye.swift
in test-multi-compile
1 -
main.swift
in test-multi-compile
1 -
swift-multi-compile.py
in test-multi-compile
1 -
Files With Most Units (Top 8)
File# lines# units
linux_load_commands.py
in test-snapshot-binaries
106 8
test-sourcekit-lsp.py
in test-sourcekit-lsp
95 4
test-repl-darwin.py
in repl
24 1
see.c
in test-complex-xctest-package/SwiftCMixed/Sources/see
7 1
swifty.swift
in test-complex-xctest-package/SwiftCMixed/Sources/swifty
5 1
see.c
in test-lldb-with-swiftpm/Sources/See
4 1
clib.c
in test-sourcekit-lsp/pkg/Sources/clib
2 1
main.swift
in test-xctest-package
12 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
linux_load_commands.py
in test-snapshot-binaries
106 8 1