apple / swift-package-collection-generator
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 21 files with 1,164 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (313 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (278 lines of code)
    • 18 very small files (573 lines of code)
0% | 0% | 26% | 23% | 49%
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
swift0% | 0% | 27% | 24% | 48%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Sources/PackageCollectionGenerator0% | 0% | 40% | 36% | 22%
Sources/Utilities0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Sources/PackageCollectionValidator0% | 0% | 0% | 0% | 100%
Sources/PackageCollectionSigner0% | 0% | 0% | 0% | 100%
Sources/PackageCollectionDiff0% | 0% | 0% | 0% | 100%
docker0% | 0% | 0% | 0% | 100%
Sources/PackageCollectionDiffExecutable0% | 0% | 0% | 0% | 100%
Sources/PackageCollectionGeneratorExecutable0% | 0% | 0% | 0% | 100%
Sources/PackageCollectionSignerExecutable0% | 0% | 0% | 0% | 100%
Sources/PackageCollectionValidatorExecutable0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
PackageCollectionGenerate.swift
in Sources/PackageCollectionGenerator
313 2
GitHubPackageMetadataProvider.swift
in Sources/PackageCollectionGenerator/PackageMetadataProviders
168 2
PackageCollectionExtensions.swift
in Sources/PackageCollectionGenerator/Models
110 -
PackageCollectionGeneratorInput.swift
in Sources/PackageCollectionGenerator/Models
82 -
Package.swift
in root
75 -
PackageCollectionValidate.swift
in Sources/PackageCollectionValidator
68 1
Git.swift
in Sources/Utilities
64 1
PackageCollectionSign.swift
in Sources/PackageCollectionSigner
61 -
PackageCollectionDiff.swift
in Sources/PackageCollectionDiff
51 -
PackageMetadataProvider.swift
in Sources/PackageCollectionGenerator/PackageMetadataProviders
46 1
Logging.swift
in Sources/Utilities
28 1
PackageManifest.swift
in Sources/PackageCollectionGenerator/Models
24 -
PackageDescription.swift
in Sources/PackageCollectionGenerator/Models
23 -
docker-compose.2004.55.yaml
in docker
13 -
docker-compose.2004.main.yaml
in docker
12 -
Path.swift
in Sources/Utilities
9 -
Shell.swift
in Sources/Utilities
9 -
main.swift
in Sources/PackageCollectionDiffExecutable
2 -
main.swift
in Sources/PackageCollectionGeneratorExecutable
2 -
main.swift
in Sources/PackageCollectionSignerExecutable
2 -
main.swift
in Sources/PackageCollectionValidatorExecutable
2 -
Files With Most Units (Top 6)
File# lines# units
PackageCollectionGenerate.swift
in Sources/PackageCollectionGenerator
313 2
GitHubPackageMetadataProvider.swift
in Sources/PackageCollectionGenerator/PackageMetadataProviders
168 2
PackageMetadataProvider.swift
in Sources/PackageCollectionGenerator/PackageMetadataProviders
46 1
PackageCollectionValidate.swift
in Sources/PackageCollectionValidator
68 1
Git.swift
in Sources/Utilities
64 1
Logging.swift
in Sources/Utilities
28 1
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 23 long lines.

File# lines# units# long lines
PackageCollectionGenerate.swift
in Sources/PackageCollectionGenerator
313 2 8
Git.swift
in Sources/Utilities
64 1 5
PackageCollectionSign.swift
in Sources/PackageCollectionSigner
61 - 4
GitHubPackageMetadataProvider.swift
in Sources/PackageCollectionGenerator/PackageMetadataProviders
168 2 2
PackageCollectionValidate.swift
in Sources/PackageCollectionValidator
68 1 2
PackageCollectionDiff.swift
in Sources/PackageCollectionDiff
51 - 1
Logging.swift
in Sources/Utilities
28 1 1