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

Re-add all SwiftSyntax rules and support #3108

Closed
wants to merge 2 commits into from

Conversation

jpsim
Copy link
Collaborator

@jpsim jpsim commented Feb 11, 2020

This reverts #3107.

@jpsim
Copy link
Collaborator Author

jpsim commented Feb 11, 2020

@marcelofabri you can use this PR to iterate on the packaging issues discussed in #3105.

@marcelofabri
Copy link
Collaborator

Thanks!

@SwiftLintBot
Copy link

SwiftLintBot commented Feb 11, 2020

117 Warnings
⚠️ Big PR
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/PrefPanel/InfoTableSource.swift:125:44: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Alamofire: /Source/MultipartFormData.swift:433:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Alamofire: /Source/MultipartFormData.swift:438:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Alamofire: /Source/MultipartFormData.swift:469:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Alamofire: /Source/MultipartFormData.swift:479:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Alamofire: /Source/Protector.swift:66:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /UITests/EarlGrey.swift:118:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /UITests/EarlGrey.swift:126:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /ClientTests/FxAPushMessageTest.swift:34:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Shared/DeferredUtils.swift:26:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Shared/DeferredUtils.swift:45:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Extensions/NotificationService/NotificationService.swift:24:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Extensions/NotificationService/NotificationService.swift:94:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Extensions/ShareTo/SendToDevice.swift:32:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:17:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:21:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:25:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:109:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:115:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:119:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:225:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:235:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:242:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /PushTests/PushCryptoTests.swift:250:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Library/LibraryViewController/LibraryViewController+LibraryPanelDelegate.swift:39:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Login Management/LoginListViewController.swift:613:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Browser/FocusHelper.swift:28:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Browser/FocusHelper.swift:33:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Browser/FocusHelper.swift:42:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Browser/Tab.swift:566:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Browser/TabManager.swift:722:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Widgets/PhotonActionSheet/PhotonActionSheet.swift:289:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Frontend/Browser/BrowserViewController.swift:1630:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:93:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:130:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:137:17: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:150:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:162:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:172:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:183:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:209:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:213:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Helpers/FxALoginHelper.swift:251:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Application/AppDelegate.swift:639:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Firefox: /Client/Application/AppDelegate.swift:662:17: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Kickstarter: /Library/KeyValueStoreType.swift:130:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Nimble: /Tests/NimbleTests/Helpers/utils.swift:54:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Nimble: /Sources/Nimble/Matchers/Async.swift:107:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Nimble: /Sources/Nimble/Matchers/Async.swift:179:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Nimble: /Sources/Nimble/DSL+Wait.swift:24:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Nimble: /Sources/Nimble/DSL+Wait.swift:34:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Realm: /RealmSwift/LinkingObjects.swift:157:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Realm: /RealmSwift/Sync.swift:431:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Realm: /RealmSwift/Results.swift:191:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Realm: /RealmSwift/List.swift:163:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Realm: /Realm/Tests/Swift/RLMSupport.swift:114:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Realm: /Realm/Swift/RLMSupport.swift:114:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Sourcery: /Pods/Nimble/Sources/Nimble/Matchers/Async.swift:107:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Sourcery: /Pods/Nimble/Sources/Nimble/Matchers/Async.swift:179:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Sourcery: /Pods/Nimble/Sources/Nimble/DSL+Wait.swift:24:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Sourcery: /Pods/Nimble/Sources/Nimble/DSL+Wait.swift:34:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Sourcery: /Sourcery/Sourcery.swift:570:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Sourcery: /SourceryTests/Stub/Performance-Code/Kiosk/HelperFunctions.swift:49:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/SwiftNativeNSArray.swift:99:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/SwiftNativeNSArray.swift:182:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/MigrationSupport.swift:335:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/StringUTF16View.swift:615:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/String.swift:943:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:541:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:634:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:737:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:767:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:835:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:943:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:974:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1013:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1055:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1162:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1193:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1232:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1343:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1429:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1521:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1615:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:1941:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:2151:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ExistentialCollection.swift:2369:7: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/ContiguousArrayBuffer.swift:151:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/KeyPath.swift:65:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/Darwin/AssetsLibrary/ALAssetsLibrary.swift:27:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/Darwin/Foundation/NSString.swift:85:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/public/Darwin/Foundation/AffineTransform.swift:157:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/private/SwiftPrivateLibcExtras/SwiftPrivateLibcExtras.swift:77:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/private/StdlibUnittestFoundationExtras/StdlibUnittestFoundationExtras.swift:95:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/private/StdlibUnittestFoundationExtras/StdlibUnittestFoundationExtras.swift:118:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/private/StdlibUnittest/RaceTest.swift:721:40: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/private/StdlibCollectionUnittest/MinimalCollections.swift:391:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in Swift: /stdlib/private/StdlibCollectionUnittest/MinimalCollections.swift:490:5: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in WordPress: /WordPress/WordPressThisWeekWidget/ThisWeekViewController.swift:123:53: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/WordPressThisWeekWidget/ThisWeekViewController.swift:358:23: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Post/RestorePostTableViewCell.swift:18:23: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Gutenberg/Utils/GutenbergFilesAppMediaSource.swift:48:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Gutenberg/Utils/GutenbergFilesAppMediaSource.swift:52:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Gutenberg/Utils/GutenbergStockPhotos.swift:49:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift:86:9: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Site Creation/SiteInfo/SiteInformationWizardContent.swift:322:24: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Themes/ThemeBrowserViewController.swift:606:30: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Notifications/Views/NoteBlockUserTableViewCell.swift:97:20: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/ViewRelated/Stats/Shared Views/TopTotalsCell.swift:296:22: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/Services/EditorSettingsService.swift:12:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in WordPress: /WordPress/Classes/Services/EditorSettingsService.swift:17:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
⚠️ This PR introduced a violation in WordPress: /WordPress/WordPressAllTimeWidget/AllTimeViewController.swift:123:59: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/WordPressAllTimeWidget/AllTimeViewController.swift:354:23: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/WordPressTodayWidget/TodayViewController.swift:123:59: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/WordPressTodayWidget/TodayViewController.swift:354:23: warning: Void Function in Ternary Violation: Using ternary to call Void functions should be avoided. (void_function_in_ternary)
⚠️ This PR introduced a violation in WordPress: /WordPress/WordPressTest/BlogServiceDeduplicationTests.swift:128:13: warning: Return Value from Void Function Violation: Returning values from Void functions should be avoided. (return_value_from_void_function)
12 Messages
📖 Linting Aerial with this PR took 1.37s vs 1.19s on master (15% slower)
📖 Linting Alamofire with this PR took 2.4s vs 2.17s on master (10% slower)
📖 Linting Firefox with this PR took 9.92s vs 8.94s on master (10% slower)
📖 Linting Kickstarter with this PR took 15.55s vs 13.93s on master (11% slower)
📖 Linting Moya with this PR took 1.33s vs 1.16s on master (14% slower)
📖 Linting Nimble with this PR took 1.53s vs 1.34s on master (14% slower)
📖 Linting Quick with this PR took 0.66s vs 0.53s on master (24% slower)
📖 Linting Realm with this PR took 2.57s vs 2.36s on master (8% slower)
📖 Linting SourceKitten with this PR took 1.18s vs 1.01s on master (16% slower)
📖 Linting Sourcery with this PR took 7.3s vs 6.69s on master (9% slower)
📖 Linting Swift with this PR took 13.4s vs 12.32s on master (8% slower)
📖 Linting WordPress with this PR took 16.48s vs 15.03s on master (9% slower)

Generated by 🚫 Danger

guard xcrunFindSwiftPath.hasSuffix("/usr/bin/swift") else {
return nil
}
let xcrunFindPath = xcrunFindSwiftPath.appending(pathComponent: "macosx")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I had to change this from the original library_wrapper from SourceKitten ⚠️

Do I need to change something in the Linux code path?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This line should be same with original like:

Suggested change
let xcrunFindPath = xcrunFindSwiftPath.appending(pathComponent: "macosx")
let xcrunFindPath = xcrunFindSwiftPath.deleting(lastPathComponents: 3)

Copy link
Collaborator

@norio-nomura norio-nomura left a comment

Choose a reason for hiding this comment

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

With suggested changes, it still fails like:

$ swift build --configuration release -Xlinker -weak-l_InternalSwiftSyntaxParser
[2/2] Linking swiftlint
$ install_name_tool -delete_rpath /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx .build/x86_64-apple-macosx/release/swiftlint
$ DYLD_PRINT_RPATHS=1 .build/x86_64-apple-macosx/release/swiftlint lint --enable-all-rules --no-cache
RPATH failed expanding     @rpath/lib_InternalSwiftSyntaxParser.dylib to: /usr/lib/swift/lib_InternalSwiftSyntaxParser.dylib
RPATH successful expansion of @rpath/libswiftCore.dylib to: /usr/lib/swift/libswiftCore.dylib
RPATH successful expansion of @rpath/libswiftDarwin.dylib to: /usr/lib/swift/libswiftDarwin.dylib
RPATH successful expansion of @rpath/libswiftDispatch.dylib to: /usr/lib/swift/libswiftDispatch.dylib
RPATH successful expansion of @rpath/libswiftFoundation.dylib to: /usr/lib/swift/libswiftFoundation.dylib
RPATH successful expansion of @rpath/libswiftObjectiveC.dylib to: /usr/lib/swift/libswiftObjectiveC.dylib
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths 
Linting 'Location.swift' (1/440)
Linting 'RuleDocumentation.swift' (2/440)
Linting 'RuleListDocumentation.swift' (3/440)
Linting 'RuleDescription.swift' (4/440)
dyld: lazy symbol binding failed: can't resolve symbol _swiftparse_syntax_structure_versioning_identifier in /Users/norio/github/SwiftLint/.build/x86_64-apple-macosx/release/swiftlint because dependent dylib #3 could not be loaded
dyld: can't resolve symbol _swiftparse_syntax_structure_versioning_identifier in /Users/norio/github/SwiftLint/.build/x86_64-apple-macosx/release/swiftlint because dependent dylib #3 could not be loaded
fish: 'DYLD_PRINT_RPATHS=1 .build/x86_…' terminated by signal SIGABRT (Abort)

I don't know how to resolve this error. 🤷‍♂

guard xcrunFindSwiftPath.hasSuffix("/usr/bin/swift") else {
return nil
}
let xcrunFindPath = xcrunFindSwiftPath.appending(pathComponent: "macosx")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line should be same with original like:

Suggested change
let xcrunFindPath = xcrunFindSwiftPath.appending(pathComponent: "macosx")
let xcrunFindPath = xcrunFindSwiftPath.deleting(lastPathComponents: 3)

}

var usrLibDir: String {
return appending(pathComponent: "/usr/lib/swift")
Copy link
Collaborator

Choose a reason for hiding this comment

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

macosx should be appended at here:

Suggested change
return appending(pathComponent: "/usr/lib/swift")
return appending(pathComponent: "/usr/lib/swift/macosx")

return unsafeBitCast(sym, to: T.self)
}
let errorString = String(validatingUTF8: dlerror())
fatalError("Finding symbol \(symbol) failed: \(errorString ?? "unknown error")")
Copy link
Collaborator

Choose a reason for hiding this comment

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

It produces a violation:

Suggested change
fatalError("Finding symbol \(symbol) failed: \(errorString ?? "unknown error")")
queuedFatalError("Finding symbol \(symbol) failed: \(errorString ?? "unknown error")")

}
}

fatalError("Loading \(path) failed")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
fatalError("Loading \(path) failed")
queuedFatalError("Loading \(path) failed")

/// If we hit this path, the user is invoking Swift via swiftenv shims and has not set the
/// environment variable; this means we're going to end up trying to load from `/usr/lib`
/// which will fail - and instead, we can give a more useful error message.
fatalError("Swift is installed via swiftenv but swiftenv is not initialized.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
fatalError("Swift is installed via swiftenv but swiftenv is not initialized.")
queuedFatalError("Swift is installed via swiftenv but swiftenv is not initialized.")

@norio-nomura
Copy link
Collaborator

Can Carthage manage the SwiftSyntax submodule just like any other?

@stale
Copy link

stale bot commented Nov 8, 2020

This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!

@stale stale bot added the wontfix Issues that became stale and were auto-closed by a bot. label Nov 8, 2020
@jpsim
Copy link
Collaborator Author

jpsim commented Nov 9, 2020

I won't be trying to fix this any time soon.

@jpsim jpsim closed this Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Issues that became stale and were auto-closed by a bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants