Skip to content

Commit 98a9f57

Browse files
authored
Merge pull request #41 from matsoftware/updated-apple-frameworks
Updated list of frameworks owned by Apple™️ that are excluded from the analysis
2 parents f271194 + 616781d commit 98a9f57

File tree

1 file changed

+37
-26
lines changed

1 file changed

+37
-26
lines changed

swift_code_metrics/_helpers.py

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,35 @@ class AnalyzerHelpers:
1818

1919
SWIFT_FILE_EXTENSION = '.swift'
2020

21+
# List of frameworks owned by Apple™️ that are excluded from the analysis.
22+
# This list is manually updated and references the content available from
23+
# https://developer.apple.com/documentation/technologies?changes=latest_major,
24+
# https://developer.apple.com/ios/whats-new/ and https://developer.apple.com/macos/whats-new/
2125
APPLE_FRAMEWORKS = [
22-
'AGL',
23-
'AppKit',
24-
'ARKit',
25-
'AVFoundation',
26-
'AVKit',
2726
'Accelerate',
2827
'Accessibility',
2928
'Accounts',
30-
'AdSupport',
3129
'AddressBook',
3230
'AddressBookUI',
31+
'AdSupport',
32+
'AGL',
3333
'AppClip',
34+
'AppKit',
3435
'AppleArchive',
3536
'ApplicationServices',
3637
'AppTrackingTransparency',
38+
'ARKit',
3739
'AssetsLibrary',
3840
'AudioToolbox',
3941
'AudioUnit',
4042
'AuthenticationServices',
4143
'AutomaticAssessmentConfiguration',
44+
'AVFoundation',
45+
'AVKit',
4246
'BackgroundTasks',
43-
'BusinessChat',
44-
'CFNetwork',
4547
'CallKit',
4648
'CarPlay',
49+
'CFNetwork',
4750
'ClassKit',
4851
'ClockKit',
4952
'CloudKit',
@@ -55,18 +58,19 @@ class AnalyzerHelpers:
5558
'ContactsUI',
5659
'CoreAnimation',
5760
'CoreAudio',
58-
'CoreAudioTypes',
5961
'CoreAudioKit',
62+
'CoreAudioTypes',
6063
'CoreBluetooth',
6164
'CoreData',
6265
'CoreFoundation',
6366
'CoreGraphics',
6467
'CoreHaptics',
6568
'CoreImage',
6669
'CoreLocation',
70+
'CoreLocationUI',
71+
'CoreMedia',
6772
'CoreMIDI',
6873
'CoreML',
69-
'CoreMedia',
7074
'CoreMotion',
7175
'CoreNFC',
7276
'CoreServices',
@@ -76,13 +80,15 @@ class AnalyzerHelpers:
7680
'CoreVideo',
7781
'CoreWLAN',
7882
'CreateML',
79-
'CryptoTokenKit',
8083
'CryptoKit',
84+
'CryptoTokenKit',
8185
'DarwinNotify',
8286
'DeveloperToolsSupport',
87+
'DeviceActivity',
8388
'DeviceCheck',
8489
'DiskArbitration',
8590
'Dispatch',
91+
'dnssd',
8692
'DriverKit',
8793
'EndpointSecurity',
8894
'EventKit',
@@ -91,47 +97,54 @@ class AnalyzerHelpers:
9197
'ExecutionPolicy',
9298
'ExposureNotification',
9399
'ExternalAccessory',
94-
'FWAUserLib',
100+
'FamilyControls',
95101
'FileProvider',
96102
'FileProviderUI',
97103
'FinderSync',
98104
'ForceFeedback',
99105
'Foundation',
106+
'FWAUserLib',
100107
'FxPlug',
101-
'GLKit',
102-
'GSS',
103108
'GameController',
104109
'GameKit',
105110
'GameplayKit',
111+
'GLKit',
112+
'GroupActivities',
113+
'GSS',
106114
'HealthKit',
107115
'HIDDriverKit',
108116
'HomeKit',
109117
'HTTPLiveStreaming',
110118
'Hypervisor',
119+
'iAd',
120+
'InputMethodKit',
111121
'IOBluetooth',
112122
'IOBluetoothUI',
113123
'IOKit',
114124
'IOSurface',
115125
'IOUSBHost',
116-
'InputMethodKit',
126+
'iTunesLibrary',
117127
'JavaScriptCore',
118128
'Kernel',
119129
'KernelManagement',
120130
'LatentSemanticMapping',
121131
'LinkPresentation',
122132
'LocalAuthentication',
123133
'Logging',
134+
'ManagedSettings',
135+
'ManagedSettingsUI',
124136
'MapKit',
125137
'MediaAccessibility',
126138
'MediaLibrary',
127139
'MediaPlayer',
128140
'MediaSetup',
129-
'MessageUI',
130141
'Messages',
142+
'MessageUI',
131143
'MetalKit',
132144
'MetricKit',
133145
'MobileCoreServices',
134146
'MultipeerConnectivity',
147+
'MusicKit',
135148
'NaturalLanguage',
136149
'NearbyInteraction',
137150
'Network',
@@ -142,6 +155,7 @@ class AnalyzerHelpers:
142155
'ObjectiveC',
143156
'OpenDirectory',
144157
'OpenGL',
158+
'os',
145159
'ParavirtualizedGraphics',
146160
'PassKit',
147161
'PDFKit',
@@ -154,7 +168,6 @@ class AnalyzerHelpers:
154168
'QuickLookThumbnailing',
155169
'RealityKit',
156170
'ReplayKit',
157-
'SMS',
158171
'SafariServices',
159172
'SceneKit',
160173
'ScreenSaver',
@@ -164,43 +177,41 @@ class AnalyzerHelpers:
164177
'SecurityInterface',
165178
'SensorKit',
166179
'ServiceManagement',
180+
'ShazamKit',
181+
'simd',
167182
'SiriKit',
183+
'SMS',
168184
'Social',
169185
'SoundAnalysis',
170186
'Speech',
171187
'SpriteKit',
172188
'StoreKit',
173189
'StoreKitTest',
190+
'SwiftUI',
174191
'System',
175192
'SystemConfiguration',
176193
'SystemExtensions',
177-
'SwiftUI',
178194
'TVML',
179195
'TVMLKit JS',
180196
'TVMLKit',
181197
'TVServices',
182198
'TVUIKit',
183-
'USBDriverKit',
184199
'UIKit',
185200
'UniformTypeIdentifiers',
201+
'USBDriverKit',
186202
'UserNotifications',
187203
'UserNotificationsUI',
188204
'VideoToolbox',
189205
'Virtualization',
190206
'Vision',
191207
'VisionKit',
208+
'vmnet'
192209
'WatchConnectivity',
193210
'WatchKit',
194211
'WebKit',
195212
'WidgetKit',
196-
'XPC',
197213
'XCTest',
198-
'dnssd',
199-
'iAd',
200-
'iTunesLibrary',
201-
'os',
202-
'simd',
203-
'vmnet'
214+
'XPC'
204215
]
205216

206217
@staticmethod

0 commit comments

Comments
 (0)