Skip to content

Lint inline documentation - #6905

Open
YuryLapitsky-TomTom wants to merge 6 commits into
realm:mainfrom
YuryLapitsky-TomTom:lint/inline-documentation
Open

Lint inline documentation#6905
YuryLapitsky-TomTom wants to merge 6 commits into
realm:mainfrom
YuryLapitsky-TomTom:lint/inline-documentation

Conversation

@YuryLapitsky-TomTom

@YuryLapitsky-TomTom YuryLapitsky-TomTom commented Aug 31, 2026

Copy link
Copy Markdown

New rule: `doc_comment_parameter`

Adds an opt-in lint rule that validates documentation comments on `func`, `init`, and `subscript` declarations are consistent with their actual signatures.

What it checks

Violation Always on Requires config
Extra `- Parameter` entry (documented name not in signature)
Missing `- Parameter` entry (signed param not documented, when others are)
`- Returns:` on a void function, or absent on a non-void one `validate_returns: true`
`- Throws:` on a non-throwing function, or absent on a throwing one `validate_throws: true`
Wrong parameter syntax style (singular vs. `- Parameters:` block) `enforce_parameter_syntax: true`

Configuration

```yaml
doc_comment_parameter:
severity: warning # default
validate_returns: false # default
validate_throws: false # default
enforce_parameter_syntax: false # default
```

Examples

```swift
// ✅ OK
/// Updates the label.
/// - Parameter with: The new text.
func updateLabel(with text: String) {}

// ✅ OK — no doc comment, no violation
func process(value: Int) {}

// ❌ Extra parameter that doesn't exist
/// - Parameter ↓ghost: Does not exist.
func greet() {}

// ❌ One of two params missing from docs
/// - Parameter lhs: Left side.
↓func add(lhs: Int, rhs: Int) -> Int { lhs + rhs }
```

Notes

  • All three optional checks default to `false` — enabling the rule as-is only catches name mismatches.
  • `rethrows` functions are lenient: `- Throws:` is allowed but not required.
  • `@discardableResult` functions are exempt from the `validate_returns` missing-returns check.
  • Supports both `/// line` and `/** block */` doc comment styles.
  • Parameters with `` external label (e.g. `func log( message:)`) are matched by their internal name.

@SwiftLintBot

SwiftLintBot commented Aug 31, 2026

Copy link
Copy Markdown
993 Warnings
⚠️ Big PR
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Downloads/DownloadManager.swift:36:21: Warning: Documented parameter 'URL' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Downloads/DownloadManager.swift:42:5: Warning: Missing documentation for parameter(s): folder, url (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/ParameterEncoder.swift:38:5: Warning: Missing documentation for parameter(s): parameters (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/ParameterEncoding.swift:40:5: Warning: Missing documentation for parameter(s): parameters (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/OfflineRetrier.swift:82:13: Warning: Documented parameter 'monitor' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/OfflineRetrier.swift:87:24: Warning: Missing documentation for parameter(s): requiredInterfaceType (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/OfflineRetrier.swift:97:13: Warning: Documented parameter 'monitor' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/OfflineRetrier.swift:103:24: Warning: Missing documentation for parameter(s): prohibitedInterfaceTypes (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/OfflineRetrier.swift:206:13: Warning: Documented parameter 'monitor' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/OfflineRetrier.swift:211:19: Warning: Missing documentation for parameter(s): requiredInterfaceType (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/OfflineRetrier.swift:223:13: Warning: Documented parameter 'monitor' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/OfflineRetrier.swift:229:19: Warning: Missing documentation for parameter(s): prohibitedInterfaceTypes (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/DataRequest.swift:54:5: Warning: Missing documentation for parameter(s): shouldAutomaticallyResume (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Request.swift:1101:21: Warning: Documented parameter 'closure' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Request.swift:1102:5: Warning: Missing documentation for parameter(s): finishHandler (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:318:10: Warning: Missing documentation for parameter(s): parameters (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:367:10: Warning: Missing documentation for parameter(s): parameters (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:431:10: Warning: Missing documentation for parameter(s): parameters (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:612:10: Warning: Missing documentation for parameter(s): parameters (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:649:10: Warning: Missing documentation for parameter(s): parameters (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:892:13: Warning: Documented parameter 'shouldAutomaticallyResume' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:1062:10: Warning: Missing documentation for parameter(s): shouldAutomaticallyResume (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:1110:10: Warning: Missing documentation for parameter(s): shouldAutomaticallyResume (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Core/Session.swift:1166:5: Warning: Missing documentation for parameter(s): isRetrying (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/Validation.swift:170:21: Warning: Documented parameter 'contentType' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/Validation.swift:175:12: Warning: Missing documentation for parameter(s): acceptableContentTypes (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/Validation.swift:220:21: Warning: Documented parameter 'contentType' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/Validation.swift:225:12: Warning: Missing documentation for parameter(s): acceptableContentTypes (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/Validation.swift:275:21: Warning: Documented parameter 'contentType' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/Validation.swift:280:12: Warning: Missing documentation for parameter(s): acceptableContentTypes (doc_comment_parameter)
⚠️ This PR introduced a violation in Alamofire: /Source/Features/URLEncodedFormEncoder.swift:410:12: Warning: Missing documentation for parameter(s): keyPathEncoding (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/UserAgent/UserAgentBuilder.swift:15:10: Warning: Missing documentation for parameter(s): appIdentifier, device, useAppIdentifierEnabled (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Browser/Playlist/ManagersAndCache/PlaylistCoordinator.swift:239:10: Warning: Missing documentation for parameter(s): interfaceController (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BVC+OpenSearch.swift:31:19: Warning: Documented parameter 'webView' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BVC+OpenSearch.swift:33:3: Warning: Missing documentation for parameter(s): tab (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Browser/TabManager.swift:801:11: Warning: Documented parameter 'delayInSeconds' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Browser/TabManager.swift:802:11: Warning: Documented parameter 'checkOtherTabs' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Widgets/LoadingViewController.swift:62:3: Warning: Missing documentation for parameter(s): viewType (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Widgets/LoadingViewController.swift:95:3: Warning: Missing documentation for parameter(s): viewType (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Share/ShareExtensionHelper.swift:23:11: Warning: Documented parameter 'selectedURL' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Share/ShareExtensionHelper.swift:24:11: Warning: Documented parameter 'selectedTab' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Frontend/Share/ShareExtensionHelper.swift:26:11: Warning: Documented parameter 'completionHandler' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Networking/NetworkManager.swift:55:3: Warning: Missing documentation for parameter(s): completion, customHeaders, resourceType, retryTimeout, url (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Networking/NetworkManager.swift:87:3: Warning: Missing documentation for parameter(s): customHeaders, resourceType, retryTimeout, url (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Networking/NetworkManager.swift:129:3: Warning: Missing documentation for parameter(s): customHeaders, resourceType, retryTimeout, url (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/BraveSkus/BraveSkusAccountLink.swift:70:19: Warning: Documented parameter 'webView' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/BraveSkus/BraveSkusAccountLink.swift:73:37: Warning: Missing documentation for parameter(s): tab (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Brave/Extensions/UIAlertControllerExtensions.swift:17:19: Warning: Documented parameter 'neverSendCallback' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Growth/AppReviewManager.swift:230:11: Warning: Missing documentation for parameter(s): date (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/BraveUI/Extensions/UIFontExtensions.swift:13:17: Warning: Missing documentation for parameter(s): traitCollection (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/BraveUI/Popover/PopoverController.swift:419:10: Warning: Missing documentation for parameter(s): completion (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Data/models/WalletUserAssetBalance.swift:139:13: Warning: Documented parameter 'completion' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Data/models/WalletUserAssetBalance.swift:176:13: Warning: Documented parameter 'completion' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Data/models/Favorite.swift:240:19: Warning: Documented parameter 'completion' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Data/models/Favorite.swift:242:9: Warning: Missing documentation for parameter(s): context, customTitle, isFavorite, save, title, url (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Data/models/BlockedResource.swift:318:13: Warning: Documented parameter 'daysRange' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Data/models/BlockedResource.swift:319:18: Warning: Missing documentation for parameter(s): context, days (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Data/models/BlockedResource.swift:353:13: Warning: Documented parameter 'daysRange' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in Brave: /ios/brave-ios/Sources/Data/models/BlockedResource.swift:354:18: Warning: Missing documentation for parameter(s): context, days (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/PixelKit/Sources/PixelKit/RetryQueue/PixelRetryQueue.swift:102:5: Warning: Missing documentation for parameter(s): allowedQueryReservedCharacters, callBackOnMainThread, headers, onComplete, parameters, pixelName (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/PixelKit/Sources/PixelKit/PixelKit.swift:720:13: Warning: Missing documentation for parameter(s): platformSuffix, retryOnFailure (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/PixelKit/Sources/PixelKit/PixelKit.swift:1298:21: Warning: Documented parameter 'pixelkit' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/PixelKit/Sources/PixelKit/PixelKit.swift:1299:12: Warning: Missing documentation for parameter(s): pixelKit (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/VPN/Sources/VPN/WireGuardKit/WireGuardAdapter.swift:230:5: Warning: Missing documentation for parameter(s): dnsResolver, eventHandler, packetTunnelSettingsGeneratorProvider, pathMonitorProvider, temporaryShutdownRecoveryDelay, tunnelFileDescriptorProvider, wireGuardInterface (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/VPN/Sources/VPN/WireGuardKit/WireGuardAdapter.swift:627:21: Warning: Documented parameter 'resolutionErrors' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/VPN/Sources/VPN/WireGuardKit/WireGuardAdapter.swift:628:13: Warning: Missing documentation for parameter(s): resolutionResults (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/UDSHelper/Sources/UDSHelper/UDSReceiver.swift:44:5: Warning: Missing documentation for parameter(s): errorHandler (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/UDSHelper/Sources/UDSHelper/UDSServer.swift:80:15: Warning: Documented parameter 'socketFileDirectory' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/UDSHelper/Sources/UDSHelper/UDSServer.swift:83:15: Warning: Documented parameter 'socketFileName' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/UDSHelper/Sources/UDSHelper/UDSServer.swift:85:12: Warning: Missing documentation for parameter(s): fileManager, socketFileURL (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/UDSHelper/Sources/UDSHelper/UDSServer.swift:219:13: Warning: Missing documentation for parameter(s): messageHandler (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionProxy/Controller/TransparentProxyController.swift:79:12: Warning: Missing documentation for parameter(s): eventHandler, notificationCenter, vpnAppState (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/NetworkProtectionMac/Sources/NetworkProtectionUI/Menu/StatusBarMenu.swift:75:12: Warning: Missing documentation for parameter(s): agentLoginItem, buttonClickedHandler, controller, iconProvider, isExtensionUpdateOfferedPublisher, isMenuBarStatusView, isStrictRoutingAvailable, locationFormatter, menuItems, model, onWillShowPopover, onboardingStatusPublisher, popoverShownHandler, statusReporter, subscribeButtonOrigin, subscriptionExpiredViewAppearHandler, subscriptionExpiredViewSubscribeButtonClickPixelHandler, uiActionHandler, uninstallHandler, userDefaults (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/SecurityScopedFileURLController.swift:42:13: Warning: Documented parameter 'logger' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/FilePresenter.swift:147:12: Warning: Missing documentation for parameter(s): createIfNeededCallback (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/FilePresenter.swift:164:21: Warning: Documented parameter 'consumeUnbalancedStartAccessingResource' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/FilePresenter.swift:166:12: Warning: Missing documentation for parameter(s): createIfNeededCallback (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/FilePresenter.swift:337:21: Warning: Missing documentation for parameter(s): createIfNeededCallback (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/FilePresenter.swift:357:21: Warning: Documented parameter 'consumeUnbalancedStartAccessingResource' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/AppKitExtensions/Sources/AppKitExtensions/FilePresenter.swift:359:21: Warning: Missing documentation for parameter(s): createIfNeededCallback (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Waitlist/VPNUninstaller.swift:170:15: Warning: Documented parameter 'includeSystemExtension' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Waitlist/VPNUninstaller.swift:174:5: Warning: Missing documentation for parameter(s): removeSystemExtension (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Freemium/DBP/FreemiumDBPFirstProfileSavedNotifier.swift:37:13: Warning: Documented parameter 'accountManager' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Freemium/DBP/FreemiumDBPFirstProfileSavedNotifier.swift:39:5: Warning: Missing documentation for parameter(s): authenticationStateProvider (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/TabBar/ViewModel/TabIndex.swift:298:13: Warning: Documented parameter 'removedTab' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/TabBar/ViewModel/TabIndex.swift:301:13: Warning: Missing documentation for parameter(s): removedTabID (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/TabBar/ViewModel/TabIndex.swift:321:13: Warning: Documented parameter 'removedTab' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/TabBar/ViewModel/TabIndex.swift:324:13: Warning: Missing documentation for parameter(s): removedTabID (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Tab/TabExtensions/FaviconsTabExtension.swift:123:13: Warning: Missing documentation for parameter(s): error, isBurner, oldValue (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/DataImport/SafariArchiveImporter.swift:108:5: Warning: Missing documentation for parameter(s): creditCardImporter, vault (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/DataImport/Logins/Firefox/FirefoxLoginReader.swift:89:5: Warning: Missing documentation for parameter(s): keyReader (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/AIChat/Sidebar/AIChatSidebarHosting.swift:33:21: Warning: Documented parameter 'currentTabIDs' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Common/Extensions/NSOpenPanelExtensions.swift:37:12: Warning: Missing documentation for parameter(s): message, prompt (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Fire/Model/Fire.swift:413:13: Warning: Missing documentation for parameter(s): completion, dataClearingWideEventService, entity, includeChatHistory, includeCookiesAndSiteData, includingHistory (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Bookmarks/Model/BookmarkNode.swift:75:11: Warning: Documented parameter 'Attention' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Bookmarks/View/Dialog/BookmarksDialogViewFactory.swift:57:12: Warning: Documented parameter 'parentFolder' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Bookmarks/View/Dialog/BookmarksDialogViewFactory.swift:60:12: Warning: Missing documentation for parameter(s): parent (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Bookmarks/Services/BookmarksContextMenu.swift:119:12: Warning: Missing documentation for parameter(s): includeManageBookmarksItem, includeReorderByNameItem, target (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Bookmarks/Services/BookmarksContextMenu.swift:163:12: Warning: Missing documentation for parameter(s): includeManageBookmarksItem, includeReorderByNameItem (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/EventHub/MacOSEventHubIntegration.swift:36:5: Warning: Missing documentation for parameter(s): privacyConfigurationManager (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Bookmarks/Services/LocalBookmarkStore.swift:723:5: Warning: Missing documentation for parameter(s): maxFavoritesCount (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/NewTabPage/Features/NextSteps/NewTabPageNextStepsCardsActionHandler.swift:30:13: Warning: Documented parameter 'completion' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/NewTabPage/Features/NextSteps/NewTabPageNextStepsCardsActionHandler.swift:31:16: Warning: Missing documentation for parameter(s): refreshCardsAction (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/NetworkProtectionTunnelController.swift:177:5: Warning: Missing documentation for parameter(s): availableExtensions, defaults, featureFlagger, networkExtensionController, settings, subscriptionManager, vpnAppState, wideEvent (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Application/WarnBeforeQuitManager.swift:51:13: Warning: Documented parameter 'dequeue' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Application/WarnBeforeQuitManager.swift:53:5: Warning: Missing documentation for parameter(s): deqFlag (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Application/WarnBeforeQuitManager.swift:698:17: Warning: Documented parameter 'onCancel' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Application/WarnBeforeQuitManager.swift:703:9: Warning: Missing documentation for parameter(s): cancellationValue (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Sync/DeviceSyncCoordinator.swift:40:5: Warning: Missing documentation for parameter(s): source (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/DefaultBrowserAndAddToDockPrompts/DefaultBrowserAndDockPromptCoordinator.swift:152:13: Warning: Documented parameter 'prompt' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/DefaultBrowserAndAddToDockPrompts/DefaultBrowserAndDockPromptCoordinator.swift:153:13: Warning: Documented parameter 'shouldHidePermanently' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/DefaultBrowserAndAddToDockPrompts/DefaultBrowserAndDockPromptCoordinator.swift:154:5: Warning: Missing documentation for parameter(s): action (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/Common/Sources/Common/Extensions/URLExtension.swift:209:12: Warning: Missing documentation for parameter(s): trimmedAddressBarString (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/LocalPackages/TestUtilities/Sources/SharedTestUtilities/Common/FindInView.swift:28:8: Warning: Missing documentation for parameter(s): seen (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/UnitTests/WarnBeforeQuit/WarnBeforeQuitManagerTests.swift:3039:5: Warning: Missing documentation for parameter(s): onCall (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AttributedMetric/Tests/AttributedMetricTests/AttributedMetricManagerTests.swift:58:13: Warning: Missing documentation for parameter(s): returningUserProvider (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AttributedMetric/Tests/AttributedMetricTests/AttributedMetricManagerTests.swift:121:13: Warning: Missing documentation for parameter(s): parameters (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/UIComponents/Sources/UIComponents/iOS/ImageSegmentedPickerView.swift:54:12: Warning: Missing documentation for parameter(s): itemContentSpacing (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/UIComponents/Sources/UIComponents/iOS/ImageSegmentedPickerView.swift:98:12: Warning: Missing documentation for parameter(s): isScrollProgressDriven (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AIChat/Sources/AIChat/Shared/AIChatAttachmentValidator.swift:215:12: Warning: Missing documentation for parameter(s): file (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AIChat/Sources/AIChat/Shared/HistoryCleaner/AIChatDataClearingUserScript.swift:130:5: Warning: Missing documentation for parameter(s): chatID (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AIChat/Sources/AIChat/Shared/Suggestions/AIChatSuggestionsViewModel.swift:88:12: Warning: Missing documentation for parameter(s): showViewAllChats (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AIChat/Sources/AIChat/iOS/PublicAPI/AIChatViewController.swift:80:13: Warning: Documented parameter 'remoteSettings' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AIChat/Sources/AIChat/iOS/PublicAPI/AIChatViewController.swift:86:24: Warning: Missing documentation for parameter(s): settings, userAgentManager (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AIChat/Sources/AIChat/iOS/Views/NativeInput/AIChatNativeInputView.swift:263:13: Warning: Documented parameter 'title' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AIChat/Sources/AIChat/iOS/Views/NativeInput/AIChatNativeInputView.swift:264:13: Warning: Documented parameter 'favicon' not found in declaration (doc_comment_parameter)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/EventHub/Sources/EventHub/Core/EventHub.swift:243:21: Warning: Documented parameter 'nowMillis' not found in declaration (doc_comment_parameter)
⚠️ Danger found 993 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 128.
20 Messages
📖 Building this branch resulted in a binary size of 28560.01 KiB vs 28467.8 KiB when built on main (0% larger).
📖 Linting Aerial with this PR took 0.68 s vs 0.67 s on main (1% slower).
📖 Linting Alamofire with this PR took 1.06 s vs 0.97 s on main (9% slower).
📖 Linting Brave with this PR took 6.39 s vs 6.28 s on main (1% slower).
📖 Linting Brigade with this PR took 18.2 s vs 18.1 s on main (0% slower).
📖 Linting DuckDuckGo with this PR took 30.15 s vs 29.57 s on main (1% slower).
📖 Linting Firefox with this PR took 11.63 s vs 11.44 s on main (1% slower).
📖 Linting Kickstarter with this PR took 8.04 s vs 7.36 s on main (9% slower).
📖 Linting Moya with this PR took 0.38 s vs 0.38 s on main (0% slower).
📖 Linting NetNewsWire with this PR took 2.56 s vs 2.53 s on main (1% slower).
📖 Linting Nimble with this PR took 0.58 s vs 0.56 s on main (3% slower).
📖 Linting PocketCasts with this PR took 7.48 s vs 7.39 s on main (1% slower).
📖 Linting Quick with this PR took 0.38 s vs 0.36 s on main (5% slower).
📖 Linting Realm with this PR took 3.09 s vs 3.02 s on main (2% slower).
📖 Linting Sourcery with this PR took 1.67 s vs 1.65 s on main (1% slower).
📖 Linting Swift with this PR took 5.29 s vs 4.55 s on main (16% slower).
📖 Linting SwiftLintPerformanceTests with this PR took 0.18 s vs 0.18 s on main (0% slower).
📖 Linting VLC with this PR took 1.3 s vs 1.31 s on main (0% faster).
📖 Linting Wire with this PR took 16.6 s vs 16.32 s on main (1% slower).
📖 Linting WordPress with this PR took 10.81 s vs 10.53 s on main (2% slower).

Generated by 🚫 Danger

@YuryLapitsky-TomTom
YuryLapitsky-TomTom force-pushed the lint/inline-documentation branch from 10e9144 to d733332 Compare August 31, 2026 15:02
@YuryLapitsky-TomTom
YuryLapitsky-TomTom force-pushed the lint/inline-documentation branch from ba78bd7 to ffdc837 Compare August 31, 2026 16:18
@YuryLapitsky-TomTom YuryLapitsky-TomTom changed the title Lint/inline documentation Lint inline documentation Aug 31, 2026
@YuryLapitsky-TomTom
YuryLapitsky-TomTom marked this pull request as ready for review August 31, 2026 16:20
YuryLapitsky-TomTom and others added 3 commits August 31, 2026 19:01
- Move access modifier to extension (extension_access_modifier)
- Move opening braces to end of multi-line conditions (opening_brace)
- Suppress type_body_length for Visitor class

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Static NSRegularExpression instances can trigger Thread Sanitizer due to
ICU internal state accessed from concurrent test threads. Replace all five
patterns with Swift Regex literals (#/.../# extended form) which are
value-typed and have no shared mutable state.

Also removes the force_try swiftlint suppressions that were needed for
try! NSRegularExpression(...).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Disable the new opt-in rule in the project's own .swiftlint.yml to avoid
violations in existing SwiftLint source files. Also remove superfluous
type_body_length disable comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants