apple / swift-docc-symbolkit
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 44 files with 1,880 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (598 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (245 lines of code)
    • 41 very small files (1,037 lines of code)
0% | 31% | 0% | 13% | 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
yaml0% | 100% | 0% | 0% | 0%
swift0% | 0% | 0% | 19% | 80%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 94% | 0% | 0% | 5%
Sources/SymbolKit/SymbolGraph/Symbol0% | 0% | 0% | 66% | 33%
Sources/SymbolKit/UnifiedSymbolGraph0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph/Symbol/Availability0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph/Relationship0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph/Symbol/Swift0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph/LineList0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph/Symbol/DeclarationFragments0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph/Symbol/FunctionSignature0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph/Relationship/Swift0% | 0% | 0% | 0% | 100%
Sources/SymbolKit/SymbolGraph/LineList/SourceRange0% | 0% | 0% | 0% | 100%
Sources/SymbolKit0% | 0% | 0% | 0% | 100%
Longest Files (Top 44)
File# lines# units
openapi.yaml
in root
598 -
Symbol.swift
in Sources/SymbolKit/SymbolGraph/Symbol
134 1
Symbol+KindIdentifier.swift
in Sources/SymbolKit/SymbolGraph/Symbol
111 -
Availability+AvailabilityItem.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Availability
89 -
Relationship.swift
in Sources/SymbolKit/SymbolGraph/Relationship
70 1
GraphCollector.swift
in Sources/SymbolKit/UnifiedSymbolGraph
64 -
UnifiedSymbolGraph.swift
in Sources/SymbolKit/UnifiedSymbolGraph
64 2
LineList.swift
in Sources/SymbolKit/SymbolGraph/LineList
53 -
SymbolGraph.swift
in Sources/SymbolKit/SymbolGraph
51 -
UnifiedSymbol.swift
in Sources/SymbolKit/UnifiedSymbolGraph
51 -
SymbolGraph+Platform.swift
in Sources/SymbolKit/SymbolGraph
37 -
SymbolGraph+SemanticVersion.swift
in Sources/SymbolKit/SymbolGraph
34 -
Symbol+Snippet.swift
in Sources/SymbolKit/SymbolGraph/Symbol
31 -
Swift+GenericConstraint.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Swift
30 -
Swift+Generics.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Swift
26 -
Relationship+SourceOrigin.swift
in Sources/SymbolKit/SymbolGraph/Relationship
25 -
FunctionSignature+FunctionParameter.swift
in Sources/SymbolKit/SymbolGraph/Symbol/FunctionSignature
25 -
Swift+Extension.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Swift
24 -
Availability+Domain.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Availability
22 -
FunctionSignature.swift
in Sources/SymbolKit/SymbolGraph/Symbol/FunctionSignature
22 -
Package.swift
in root
19 -
Package@swift-5.5.swift
in root
19 -
Fragment+Kind.swift
in Sources/SymbolKit/SymbolGraph/Symbol/DeclarationFragments/Fragment
19 -
Symbol+Kind.swift
in Sources/SymbolKit/SymbolGraph/Symbol
19 -
Swift+GenericConstraints.swift
in Sources/SymbolKit/SymbolGraph/Relationship/Swift
18 -
Swift.swift
in Sources/SymbolKit/SymbolGraph/Relationship/Swift
18 -
Availability.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Availability
18 -
DeclarationFragments.swift
in Sources/SymbolKit/SymbolGraph/Symbol/DeclarationFragments
18 -
Symbol+SPI.swift
in Sources/SymbolKit/SymbolGraph/Symbol
18 -
Relationship+Kind.swift
in Sources/SymbolKit/SymbolGraph/Relationship
16 -
Symbol+Mutability.swift
in Sources/SymbolKit/SymbolGraph/Symbol
15 -
Symbol+Names.swift
in Sources/SymbolKit/SymbolGraph/Symbol
15 -
SymbolGraph+Module.swift
in Sources/SymbolKit/SymbolGraph
15 -
Fragment.swift
in Sources/SymbolKit/SymbolGraph/Symbol/DeclarationFragments/Fragment
13 -
Symbol+Identifier.swift
in Sources/SymbolKit/SymbolGraph/Symbol
11 -
SymbolGraph+Metadata.swift
in Sources/SymbolKit/SymbolGraph
11 -
SymbolGraph+OperatingSystem.swift
in Sources/SymbolKit/SymbolGraph
10 -
Symbol+AccessControl.swift
in Sources/SymbolKit/SymbolGraph/Symbol
9 -
Swift+GenericParameter.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Swift
8 -
Symbol+Location.swift
in Sources/SymbolKit/SymbolGraph/Symbol
8 -
SourceRange+Position.swift
in Sources/SymbolKit/SymbolGraph/LineList/SourceRange
7 -
SourceRange.swift
in Sources/SymbolKit/SymbolGraph/LineList/SourceRange
7 -
Mixin.swift
in Sources/SymbolKit
4 -
Namespace.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Swift
4 -
Files With Most Units (Top 3)
File# lines# units
UnifiedSymbolGraph.swift
in Sources/SymbolKit/UnifiedSymbolGraph
64 2
Relationship.swift
in Sources/SymbolKit/SymbolGraph/Relationship
70 1
Symbol.swift
in Sources/SymbolKit/SymbolGraph/Symbol
134 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 28 long lines.

File# lines# units# long lines
openapi.yaml
in root
598 - 9
Availability+AvailabilityItem.swift
in Sources/SymbolKit/SymbolGraph/Symbol/Availability
89 - 6
UnifiedSymbolGraph.swift
in Sources/SymbolKit/UnifiedSymbolGraph
64 2 3
LineList.swift
in Sources/SymbolKit/SymbolGraph/LineList
53 - 2
Symbol.swift
in Sources/SymbolKit/SymbolGraph/Symbol
134 1 2
SymbolGraph.swift
in Sources/SymbolKit/SymbolGraph
51 - 2
Swift.swift
in Sources/SymbolKit/SymbolGraph/Relationship/Swift
18 - 1
FunctionSignature+FunctionParameter.swift
in Sources/SymbolKit/SymbolGraph/Symbol/FunctionSignature
25 - 1
Symbol+Names.swift
in Sources/SymbolKit/SymbolGraph/Symbol
15 - 1
SymbolGraph+Platform.swift
in Sources/SymbolKit/SymbolGraph
37 - 1