Skip to content

Temporarily remove all SwiftSyntax rules and support - #3107

Merged
jpsim merged 7 commits into
masterfrom
remove-swift-syntax
Feb 11, 2020
Merged

jpsim merged 7 commits into
masterfrom
remove-swift-syntax

Conversation

@jpsim

@jpsim jpsim commented Feb 11, 2020 •

Copy link
Copy Markdown
Collaborator

The new rules introduced in 0.39.0 that depend on SwiftSyntax have been temporarily removed as we work out release packaging issues.

  • prohibited_nan_comparison
  • return_value_from_void_function
  • tuple_pattern
  • void_function_in_ternary

See #3105 for details.

@jpsim

jpsim commented Feb 11, 2020

Copy link
Copy Markdown
Collaborator Author

Sorry to revert all this stuff @marcelofabri. At least all this stuff is fairly self-contained and shouldn't lead to too many merge conflicts when we sort out the packaging details.

@realm realm deleted a comment from SwiftLintBot Feb 11, 2020
@jpsim
jpsim merged commit b744cf0 into master Feb 11, 2020
@jpsim
jpsim deleted the remove-swift-syntax branch February 11, 2020 21:40
jpsim added a commit that referenced this pull request Feb 11, 2020
@SwiftLintBot

Copy link
Copy Markdown
1 Warning
⚠️ Big PR
128 Messages
📖 Linting Aerial with this PR took 1.19s vs 1.29s on master (7% faster)
📖 Linting Alamofire with this PR took 2.17s vs 2.34s on master (7% faster)
📖 Linting Firefox with this PR took 9.01s vs 9.77s on master (7% faster)
📖 Linting Kickstarter with this PR took 13.96s vs 15.25s on master (8% faster)
📖 Linting Moya with this PR took 1.15s vs 1.3s on master (11% faster)
📖 Linting Nimble with this PR took 1.35s vs 1.55s on master (12% faster)
📖 Linting Quick with this PR took 0.54s vs 0.59s on master (8% faster)
📖 Linting Realm with this PR took 2.38s vs 2.52s on master (5% faster)
📖 Linting SourceKitten with this PR took 1.01s vs 1.12s on master (9% faster)
📖 Linting Sourcery with this PR took 6.68s vs 7.27s on master (8% faster)
📖 Linting Swift with this PR took 12.37s vs 13.33s on master (7% faster)
📖 Linting WordPress with this PR took 15.04s vs 16.36s on master (8% faster)
📖 This PR fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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 fixed 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)

Generated by 🚫 Danger

optionalendeavors added a commit to optionalendeavors/SwiftLint that referenced this pull request Jul 12, 2020
* master: (101 commits)
  JUnit reporter for GitLab artifact:report:junit (realm#3177)
  Add empty changelog section
  release 0.39.2
  Update CI to run jobs with Xcode 11.0 to 11.4 (realm#3168)
  Fix false positives in valid_ibinspectable rule when using Swift 5.2 (realm#3155)
  Fix attributes rule false positive with Swift 5.2 (realm#3154)
  Fix CHANGELOG link
  Fix false positives in redundant_objc_attribute with Swift 5.2 (realm#3152)
  Fix false positives on implicit_getter with Swift 5.2+ (realm#3151)
  Simplify regex (realm#3145)
  fix links about configuration rules (realm#3142)
  Add unused_import config options to require imports for each module used (realm#3123)
  Add empty changelog section
  release 0.39.1
  Temporarily remove all SwiftSyntax rules and support (realm#3107)
  Fix unused_import rule reported locations and corrections (realm#3106)
  release 0.39.0
  Fix false positive in `empty_string` rule with multiline literals (realm#3101)
  Fix PrivateActionRule in Swift 5.2 (realm#3092)
  Fix false positive in implicit_getter with Swift 5.2 (realm#3099)
  ...

# Conflicts:
#	Source/SwiftLintFramework/Extensions/SwiftLintFile+Regex.swift
@4np

4np commented Oct 26, 2020

Copy link
Copy Markdown

@jpsim : now that #3105 is closed, will these rules be re-enabled?

@jpsim

jpsim commented Oct 26, 2020

Copy link
Copy Markdown
Collaborator Author

Once someone comes up with a suitable distribution plan yes.

jpsim added a commit that referenced this pull request Mar 7, 2022
We've tried adding Swift Syntax support to SwiftLint in the past but had to turn it off in #3107 due to distribution and portability issues.

With https://github.com/keith/StaticInternalSwiftSyntaxParser it should be possible to avoid those issues by statically linking the internal Swift syntax parser so it's available no matter where users have Xcode installed on their computer.

By removing all calls to SourceKit (collecting comment commands + checking the current Swift version), there's a really significant performance improvement.

| Framework | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| SourceKit | 517.8 ± 8.3 | 505.5 | 531.1 | 6.59 ± 0.43 |
| SwiftSyntax | 78.6 ± 5.0 | 72.6 | 92.1 | 1.00 |

In practice, the SourceKit overhead will continue being there for as long as any rule being run is still looking up the SwiftLint syntax map though.
jpsim added a commit that referenced this pull request Mar 9, 2022
We've tried adding Swift Syntax support to SwiftLint in the past but had to turn it off in #3107 due to distribution and portability issues.

With https://github.com/keith/StaticInternalSwiftSyntaxParser it should be possible to avoid those issues by statically linking the internal Swift syntax parser so it's available no matter where users have Xcode installed on their computer.

By removing all calls to SourceKit (collecting comment commands + checking the current Swift version), there's a really significant performance improvement.

| Framework | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| SourceKit | 517.8 ± 8.3 | 505.5 | 531.1 | 6.59 ± 0.43 |
| SwiftSyntax | 78.6 ± 5.0 | 72.6 | 92.1 | 1.00 |

In practice, the SourceKit overhead will continue being there for as long as any rule being run is still looking up the SwiftLint syntax map though.
coffmark pushed a commit to coffmark/SwiftLint that referenced this pull request Apr 11, 2022
We've tried adding Swift Syntax support to SwiftLint in the past but had to turn it off in realm#3107 due to distribution and portability issues.

With https://github.com/keith/StaticInternalSwiftSyntaxParser it should be possible to avoid those issues by statically linking the internal Swift syntax parser so it's available no matter where users have Xcode installed on their computer.

By removing all calls to SourceKit (collecting comment commands + checking the current Swift version), there's a really significant performance improvement.

| Framework | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| SourceKit | 517.8 ± 8.3 | 505.5 | 531.1 | 6.59 ± 0.43 |
| SwiftSyntax | 78.6 ± 5.0 | 72.6 | 92.1 | 1.00 |

In practice, the SourceKit overhead will continue being there for as long as any rule being run is still looking up the SwiftLint syntax map though.
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.

3 participants