Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- rule added i.e. redundant_extension #5359 #5397

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mzeeshanid
Copy link
Contributor

@mzeeshanid mzeeshanid commented Dec 18, 2023

Rule added for avoiding redundant extensions resolve #5359

@SwiftLintBot
Copy link

SwiftLintBot commented Dec 18, 2023

1 Error
🚫 Please rebase to get rid of the merge commits in this PR
943 Warnings
⚠️ This PR introduced a violation in Alamofire: /Source/NetworkReachabilityManager.swift:260:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/Protected.swift:77:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:905:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:907:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ServerTrustEvaluation.swift:478:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ServerTrustEvaluation.swift:506:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ServerTrustEvaluation.swift:683:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ServerTrustEvaluation.swift:713:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ServerTrustEvaluation.swift:726:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ServerTrustEvaluation.swift:755:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/ServerTrustEvaluation.swift:761:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Alamofire: /Source/URLSessionConfiguration+Alamofire.swift:27:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Brave/Extensions/Rewards/PublisherInfoExtensions.swift:32:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+Wallet.swift:116:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Brave/Frontend/Browser/Playlist/Browser/PlaylistPopoverView.swift:83:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/BraveWallet/Crypto/Transactions/TransactionParser.swift:659:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/BraveWallet/Extensions/BraveWalletSwiftUIExtensions.swift:32:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Data/models/CRUDProtocols.swift:161:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Growth/P3ATimedStorage.swift:102:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Growth/P3ATimedStorage.swift:103:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:232:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:233:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:234:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:235:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:236:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:237:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:238:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:239:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:240:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:241:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Brave: /Sources/Preferences/Preferences.swift:242:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /Core/AppTrackerEntity.swift:90:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /Core/BookmarkObjects.swift:79:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /Core/BookmarkObjects.swift:81:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /Core/PixelEvent.swift:516:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /Core/WebCacheManager.swift:293:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/ActionMessageView.swift:22:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/AppConfigurationFetch.swift:34:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/Autoconsent/AutoconsentUserScript.swift:34:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/AutofillLoginDetailsViewModel.swift:472:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/BrowsingMenu/BrowsingMenuButton.swift:22:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/ContentBlockingUpdating.swift:33:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/FireproofFaviconUpdater.swift:30:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/OmniBar.swift:26:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/PrivacyDashboard/PrivacyDashboardViewController.swift:193:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /DuckDuckGo/WebContainerViewController.swift:105:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /PacketTunnelProvider/ProxyServer/Utils/BinaryDataScanner.swift:33:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /PacketTunnelProvider/ProxyServer/Utils/BinaryDataScanner.swift:35:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /PacketTunnelProvider/ProxyServer/Utils/BinaryDataScanner.swift:37:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /PacketTunnelProvider/ProxyServer/Utils/Port.swift:77:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in DuckDuckGo: /PacketTunnelProvider/ProxyServer/Utils/UInt128.swift:595:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /BrowserKit/Sources/Common/Logger/Wrapper/SwiftyBeaverWrapper.swift:35:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /BrowserKit/Sources/Common/Protocols/FileManagerProtocol.swift:20:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /BrowserKit/Sources/Common/Utilities/DispatchQueueInterface.swift:55:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /BrowserKit/Sources/Common/Utilities/UserDefaultsInterface.swift:21:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /BrowserKit/Sources/SiteImageView/ImageProcessing/SiteImageFetcher/SiteImageDownloader.swift:81:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /BrowserKit/Sources/WebEngine/WKWebview/WKEngineConfiguration.swift:14:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/AdjustTelemetryHelper.swift:15:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Experiments/Messaging/GleanPlumbMessage.swift:16:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Experiments/Messaging/GleanPlumbMessage.swift:23:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Frontend/Library/Bookmarks/FxBookmarkNode.swift:27:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Protocols/ApplicationStateProvider.swift:11:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Protocols/FileManagerInterface.swift:24:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Protocols/Presenter.swift:22:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Protocols/UIDeviceInterface.swift:11:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Protocols/URLSession/URLSessionDataTaskProtocol.swift:11:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/UserNotificationCenterProtocol.swift:22:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/firefox-ios-tests/Tests/SharedTests/DeferredTestUtils.swift:13:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Features/Activities/Controller/ActivitiesViewController.swift:364:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Features/Search/Controller/SearchViewController.swift:265:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Library/BrazeTypes.swift:15:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Library/BrazeTypes.swift:9:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Library/UIFeedbackGeneratorType.swift:15:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Library/UIFeedbackGeneratorType.swift:23:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Library/UIFeedbackGeneratorType.swift:31:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Library/WebViewController.swift:79:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Library/WebViewController.swift:81:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-iOS/Library/WebViewController.swift:87:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Activity.swift:41:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ActivityComment.swift:46:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ActivityEnvelope.swift:23:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Backing.swift:115:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Backing.swift:43:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Category.swift:118:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Comment.swift:50:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Comment.swift:88:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Config.swift:72:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/DiscoveryParams.swift:81:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ErrorEnvelope.swift:139:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ErrorEnvelope.swift:175:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ErrorEnvelope.swift:190:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ErrorEnvelope.swift:200:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/FindFriendsEnvelope.swift:25:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Location.swift:30:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/MessageSubject.swift:28:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/MessageThread.swift:25:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Param.swift:44:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Project.Country.swift:104:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Project.swift:258:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Project.swift:464:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectNotification.swift:16:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectNotification.swift:18:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectNotification.swift:20:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectNotification.swift:25:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectStatsEnvelope.swift:110:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectStatsEnvelope.swift:143:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectStatsEnvelope.swift:164:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectStatsEnvelope.swift:195:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectStatsEnvelope.swift:242:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ProjectStatsEnvelope.swift:257:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Reward.swift:85:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Reward.swift:92:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/ShippingRule.swift:24:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/StarEnvelope.swift:8:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/SurveyResponse.swift:18:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/SurveyResponse.swift:32:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/SurveyResponse.swift:33:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Update.swift:28:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Update.swift:69:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/Update.swift:71:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/UpdateDraft.swift:32:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/UpdateDraft.swift:57:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/UpdateDraft.swift:76:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/UpdateDraft.swift:77:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/UpdateDraft.swift:78:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/User.swift:102:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/User.swift:232:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/User.swift:293:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/models/VoidEnvelope.swift:4:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/AssetImageGeneratorType.swift:13:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/ExpandableRow.swift:45:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/Instantiable.swift:14:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/KeyValueStoreType.swift:171:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/Language.swift:47:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/NSHTTPCookieStorageType.swift:12:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/Navigation.swift:83:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/ProcessInfoType.swift:7:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/RefTag.swift:163:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/SelectableRow.swift:51:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/ShortcutItem.swift:31:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/TestHelpers/AlertError+Equatable.swift:3:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/Tracking/Segment.swift:33:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/Tracking/Segment.swift:34:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/UIApplication.swift:3:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/UIScreenType.swift:10:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/UUIDType.swift:8:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ This PR introduced a violation in Kickstarter: /Library/ViewModels/ProjectPamphletSubpageCellViewModel.swift:150:1: warning: Redundant Extension Violation: Avoid redundant extensions (redundant_extension)
⚠️ Danger found 943 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 147.
17 Messages
📖 Linting Aerial with this PR took 1.19s vs 1.19s on main (0% slower)
📖 Linting Alamofire with this PR took 1.64s vs 1.65s on main (0% faster)
📖 Linting Brave with this PR took 9.34s vs 9.35s on main (0% faster)
📖 Linting DuckDuckGo with this PR took 4.81s vs 4.81s on main (0% slower)
📖 Linting Firefox with this PR took 11.06s vs 11.04s on main (0% slower)
📖 Linting Kickstarter with this PR took 11.3s vs 11.31s on main (0% faster)
📖 Linting Moya with this PR took 0.63s vs 0.63s on main (0% slower)
📖 Linting NetNewsWire with this PR took 3.35s vs 3.34s on main (0% slower)
📖 Linting Nimble with this PR took 0.91s vs 0.91s on main (0% slower)
📖 Linting PocketCasts with this PR took 9.08s vs 9.13s on main (0% faster)
📖 Linting Quick with this PR took 0.4s vs 0.4s on main (0% slower)
📖 Linting Realm with this PR took 5.79s vs 5.8s on main (0% faster)
📖 Linting Sourcery with this PR took 2.89s vs 2.9s on main (0% faster)
📖 Linting Swift with this PR took 5.4s vs 5.37s on main (0% slower)
📖 Linting VLC with this PR took 1.62s vs 1.62s on main (0% slower)
📖 Linting Wire with this PR took 20.11s vs 20.14s on main (0% faster)
📖 Linting WordPress with this PR took 13.64s vs 13.62s on main (0% slower)

Generated by 🚫 Danger

@SimplyDanny
Copy link
Collaborator

To be honest, I don't deem this rule to be as useful as I intentionally thought. The OSS report contains a lot of false positives. It's pretty common to conform a foreign type to a local protocol. And quite often the type already comes with the requirements defined in the protocol causing an empty body.

So blindly triggering on every extension with an empty body isn't the way to go in my opinion. What might be acceptable is that the rule only triggers on empty extension if the extended type is defined in the same file. In that case, the conformance can just be moved to the type's definition. This could be a convention that projects follow, and the rule could support them with it.

That said, I think this rule requires some more thought and, admittedly, the implementation for what I suggest above is a bit more involved.

@jaredgrubb
Copy link

It seems that the rule is really trying to flag:

extension Foo {}

but is also trapping good and correct code like:

extension Foo: Sendable {}

I think the rule is just being too loose for what the Issue and Examples suggest. The OSS failures are calling out this deficiency.

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.

Detect redundant extensions
4 participants