apple / swift-package-registry-compatibility-test-suite
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 48 files with 4,205 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (627 lines of code)
    • 1 medium size files (312 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,839 lines of code)
    • 33 very small files (1,427 lines of code)
0% | 14% | 7% | 43% | 33%
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% | 15% | 7% | 44% | 33%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Sources/PackageRegistryCompatibilityTestSuite0% | 49% | 24% | 10% | 15%
Sources/PackageRegistryCompatibilityTestSuite/APITests0% | 0% | 0% | 92% | 7%
Sources/PackageRegistryExample0% | 0% | 0% | 65% | 34%
Sources/PackageRegistryExample/Controllers0% | 0% | 0% | 62% | 37%
Sources/PackageRegistryExample/DataAccess0% | 0% | 0% | 29% | 70%
Sources/PackageRegistryClient0% | 0% | 0% | 100% | 0%
Sources/PackageRegistryModels0% | 0% | 0% | 0% | 100%
Sources/DatabaseMigrations0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Sources/PostgresMigrations0% | 0% | 0% | 0% | 100%
Sources/PackageRegistryTool0% | 0% | 0% | 0% | 100%
docker0% | 0% | 0% | 0% | 100%
Longest Files (Top 48)
File# lines# units
Commands.swift
in Sources/PackageRegistryCompatibilityTestSuite
627 14
TestConfigurationGenerator.swift
in Sources/PackageRegistryCompatibilityTestSuite
312 5
APITest.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
186 13
Service+API.swift
in Sources/PackageRegistryExample
171 5
DownloadSourceArchive.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
162 2
PackageReleasesDAO+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
161 8
PackageRegistryClient.swift
in Sources/PackageRegistryClient
158 -
ListPackageReleases.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
150 4
FetchPackageReleaseInfo.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
141 2
TestOutput.swift
in Sources/PackageRegistryCompatibilityTestSuite
134 8
CreatePackageRelease.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
131 3
CreatePackageReleaseController.swift
in Sources/PackageRegistryExample/Controllers
125 2
Vapor+Extensions.swift
in Sources/PackageRegistryExample
115 2
PackageReleasesController.swift
in Sources/PackageRegistryExample/Controllers
103 4
FetchPackageReleaseManifest.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
102 2
DatabaseMigrations.swift
in Sources/DatabaseMigrations
96 8
Package.swift
in root
90 -
PackageManifestsDAO+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
82 4
Tool.swift
in Sources/PackageRegistryTool
79 1
PackageResourcesDAO+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
72 4
LookupPackageIdentifiers.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
68 2
PackageManifestsController.swift
in Sources/PackageRegistryExample/Controllers
65 2
PostgresMigrations.swift
in Sources/PostgresMigrations
59 5
Service+Configuration.swift
in Sources/PackageRegistryExample
58 -
Codable+Defaults.swift
in Sources/PackageRegistryCompatibilityTestSuite
56 3
Models.swift
in Sources/PackageRegistryExample/DataAccess
54 2
Models.swift
in Sources/PackageRegistryCompatibilityTestSuite
52 2
PostgresMigrations.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
49 1
AsyncAwaitBridge.swift
in Sources/PackageRegistryCompatibilityTestSuite
47 2
DataAccess.swift
in Sources/PackageRegistryExample/DataAccess
46 10
Service.swift
in Sources/PackageRegistryExample
46 -
DataAccess+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
40 3
PackageResourcesController.swift
in Sources/PackageRegistryExample/Controllers
39 2
Utility.swift
in Sources/PackageRegistryCompatibilityTestSuite
38 3
PostgresKit+Extensions.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
37 4
CreatePackageRelease.swift
in Sources/PackageRegistryModels
36 -
PackageReleaseInfo.swift
in Sources/PackageRegistryModels
29 -
Helpers.swift
in Sources/PackageRegistryExample
24 3
docker-compose.2004.55.yml
in docker
22 -
PostgresKit+Extensions.swift
in Sources/PostgresMigrations
21 1
docker-compose.2004.main.yml
in docker
21 -
JSON+Extensions.swift
in Sources/PackageRegistryExample
20 -
PackageIdentifiersController.swift
in Sources/PackageRegistryExample/Controllers
19 2
BasicControllers.swift
in Sources/PackageRegistryExample/Controllers
16 2
PackageReleases.swift
in Sources/PackageRegistryModels
15 -
ProblemDetails.swift
in Sources/PackageRegistryModels
15 -
PackageReleaseMetadata.swift
in Sources/PackageRegistryModels
9 -
PackageIdentifiers.swift
in Sources/PackageRegistryModels
7 -
Files With Most Units (Top 20)
File# lines# units
Commands.swift
in Sources/PackageRegistryCompatibilityTestSuite
627 14
APITest.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
186 13
DataAccess.swift
in Sources/PackageRegistryExample/DataAccess
46 10
DatabaseMigrations.swift
in Sources/DatabaseMigrations
96 8
TestOutput.swift
in Sources/PackageRegistryCompatibilityTestSuite
134 8
PackageReleasesDAO+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
161 8
TestConfigurationGenerator.swift
in Sources/PackageRegistryCompatibilityTestSuite
312 5
Service+API.swift
in Sources/PackageRegistryExample
171 5
PostgresMigrations.swift
in Sources/PostgresMigrations
59 5
ListPackageReleases.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
150 4
PackageReleasesController.swift
in Sources/PackageRegistryExample/Controllers
103 4
PackageManifestsDAO+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
82 4
PackageResourcesDAO+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
72 4
PostgresKit+Extensions.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
37 4
CreatePackageRelease.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
131 3
Codable+Defaults.swift
in Sources/PackageRegistryCompatibilityTestSuite
56 3
Utility.swift
in Sources/PackageRegistryCompatibilityTestSuite
38 3
DataAccess+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
40 3
Helpers.swift
in Sources/PackageRegistryExample
24 3
DownloadSourceArchive.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
162 2
Files With Long Lines (Top 20)

There are 31 files with lines longer than 120 characters. In total, there are 222 long lines.

File# lines# units# long lines
Commands.swift
in Sources/PackageRegistryCompatibilityTestSuite
627 14 48
TestConfigurationGenerator.swift
in Sources/PackageRegistryCompatibilityTestSuite
312 5 21
DownloadSourceArchive.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
162 2 15
FetchPackageReleaseInfo.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
141 2 14
CreatePackageRelease.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
131 3 12
ListPackageReleases.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
150 4 12
APITest.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
186 13 11
FetchPackageReleaseManifest.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
102 2 11
Service+API.swift
in Sources/PackageRegistryExample
171 5 9
CreatePackageReleaseController.swift
in Sources/PackageRegistryExample/Controllers
125 2 8
PackageReleasesController.swift
in Sources/PackageRegistryExample/Controllers
103 4 8
PackageReleasesDAO+Postgres.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
161 8 8
Service+Configuration.swift
in Sources/PackageRegistryExample
58 - 7
PackageRegistryClient.swift
in Sources/PackageRegistryClient
158 - 5
PostgresMigrations.swift
in Sources/PackageRegistryExample/DataAccess/Postgres
49 1 4
Vapor+Extensions.swift
in Sources/PackageRegistryExample
115 2 4
Tool.swift
in Sources/PackageRegistryTool
79 1 4
LookupPackageIdentifiers.swift
in Sources/PackageRegistryCompatibilityTestSuite/APITests
68 2 3
PackageResourcesController.swift
in Sources/PackageRegistryExample/Controllers
39 2 3
PackageManifestsController.swift
in Sources/PackageRegistryExample/Controllers
65 2 2