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

#2079 - Implemented the new sublclass rule. #2081

Closed
wants to merge 1 commit into from

Conversation

driver733
Copy link

@driver733 driver733 commented Mar 2, 2018

As per #2079
I have implemented a new rule that prohibits subclassing.

@SwiftLintBot
Copy link

SwiftLintBot commented Mar 2, 2018

10565 Warnings
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:13:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:14:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:30:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:71:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:77:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:93:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:160:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:168:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:202:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:18:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:29:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:33:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:67:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:70:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:77:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:112:17: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:125:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:132:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:154:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:161:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:177:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:181:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:185:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:200:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:211:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:219:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:230:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:261:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:267:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:296:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:307:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:331:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:346:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:350:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:355:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:366:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:430:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:454:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:475:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:488:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:522:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:533:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/CheckCellView.swift:16:23: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/CheckCellView.swift:20:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/CheckCellView.swift:24:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/CheckCellView.swift:29:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/CheckCellView.swift:37:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Tests/PreferencesTests.swift:14:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Tests/PreferencesTests.swift:18:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Tests/PreferencesTests.swift:22:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:53:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:60:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:65:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:90:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:113:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:175:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:181:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:185:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:189:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:199:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:271:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:275:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/MasterViewController.swift:37:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/MasterViewController.swift:43:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/MasterViewController.swift:65:13: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/MasterViewController.swift:60:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:58:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:63:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:70:15: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:115:13: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:146:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:155:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:178:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:182:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:195:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/DetailViewController.swift:204:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:36:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:57:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:63:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:128:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:160:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:176:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:187:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:198:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:213:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:226:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:271:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:362:9: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:399:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:413:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:443:16: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:461:9: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:504:19: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:523:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:537:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:566:9: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:621:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Request.swift:638:9: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:65:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:79:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:92:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:109:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:150:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:165:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:213:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:220:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:236:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:253:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:261:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:286:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:325:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:330:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:343:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:377:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:404:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:432:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:437:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/TaskDelegate.swift:446:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:186:21: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:198:19: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:244:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:255:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:294:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:313:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:341:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:372:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:396:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:425:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:425:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:436:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:505:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:530:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:547:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:566:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:602:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:624:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:654:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:683:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:691:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:699:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/SessionDelegate.swift:709:10: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Tests/BaseTestCase.swift:35:14: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Tests/BaseTestCase.swift:42:5: error: Subclass Violation: Subclassing is prohibited. (subclass)
⚠️ Danger found 10565 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 143.
12 Messages
📖 Linting Aerial with this PR took 0.44s vs 0.42s on master (4% slower)
📖 Linting Alamofire with this PR took 3.63s vs 3.48s on master (4% slower)
📖 Linting Firefox with this PR took 14.41s vs 13.74s on master (4% slower)
📖 Linting Kickstarter with this PR took 21.84s vs 21.52s on master (1% slower)
📖 Linting Moya with this PR took 2.03s vs 2.04s on master (0% faster)
📖 Linting Nimble with this PR took 2.03s vs 1.99s on master (2% slower)
📖 Linting Quick with this PR took 0.6s vs 0.58s on master (3% slower)
📖 Linting Realm with this PR took 4.07s vs 3.91s on master (4% slower)
📖 Linting SourceKitten with this PR took 1.2s vs 1.15s on master (4% slower)
📖 Linting Sourcery with this PR took 5.29s vs 5.13s on master (3% slower)
📖 Linting Swift with this PR took 15.68s vs 14.74s on master (6% slower)
📖 Linting WordPress with this PR took 17.13s vs 16.91s on master (1% slower)

Generated by 🚫 Danger

@codecov-io
Copy link

codecov-io commented Mar 2, 2018

Codecov Report

Merging #2081 into master will increase coverage by 0.03%.
The diff coverage is 95.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2081      +/-   ##
==========================================
+ Coverage   89.68%   89.71%   +0.03%     
==========================================
  Files         259      261       +2     
  Lines       15020    15066      +46     
  Branches      977      980       +3     
==========================================
+ Hits        13471    13517      +46     
  Misses       1532     1532              
  Partials       17       17
Impacted Files Coverage Δ
...ts/SwiftLintFrameworkTests/SubClassRuleTests.swift 100% <100%> (ø)
Source/SwiftLintFramework/Rules/SubClassRule.swift 91.3% <91.3%> (ø)
Source/SwiftLintFramework/Models/Command.swift 97.77% <0%> (+2.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 52274de...dc051f5. Read the comment docs.

@driver733 driver733 changed the title #2097 - Implemented the new sublclass rule. #2079 - Implemented the new sublclass rule. Mar 2, 2018
@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be commited

identifier: "subclass",
name: "Subclass",
description: "Subclassing is prohibited.",
kind: .style
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should provide triggeringExamples and nonTriggeringExamples

identifier: "subclass",
name: "Subclass",
description: "Subclassing is prohibited.",
kind: .style
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be probably .idiomatic kind and not .style

import SourceKittenFramework

public struct SubClassRule: ASTRule, ConfigurationProviderRule, OptInRule {
public var configuration = SeverityLevelsConfiguration(warning: 0, error: 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should use SeverityConfiguration

return []
}

if contentsNSString.contains("super.") || contentsNSString.contains("super()") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not the right way of doing this since you can have subclasses that don't call super

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcelofabri What would be the right way in your opinion? The SourceKit does not distinguish the inheritance between the interfaces and superclasses. It only shows that the class inherits from something.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should have a rule that triggers if you don't add final to a class, as @SDGGiesbrecht suggested.

There's not a lot of value (and in fact I'd argue that it's worst) to trigger a violation on cases where you don't have an alternative, usually dealing with dependencies (either system frameworks like UIKit or 3rd party ones).

@driver733 driver733 closed this Apr 5, 2020
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.

4 participants