SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Implement observable_object_main_actor rule

Open 72A12F4E opened this issue 3 years ago • 1 comments

Closes #3655

72A12F4E avatar Jun 12 '21 20:06 72A12F4E

2 Warnings
:warning: This PR introduced a violation in Alamofire: /watchOS Example/watchOS Example WatchKit Extension/Networking.swift:28:7: warning: Observable Object Main Actor Violation: ObservableObject should be annotated with @MainActor to ensure that any updates to @Published state occur on the main thread. (observable_object_main_actor)
:warning: This PR introduced a violation in Realm: /RealmSwift/SwiftUI.swift:156:9: warning: Observable Object Main Actor Violation: ObservableObject should be annotated with @MainActor to ensure that any updates to @Published state occur on the main thread. (observable_object_main_actor)
12 Messages
:book: Linting Aerial with this PR took 0.99s vs 0.72s on master (37% slower)
:book: Linting Alamofire with this PR took 0.96s vs 0.96s on master (0% slower)
:book: Linting Firefox with this PR took 3.27s vs 3.27s on master (0% slower)
:book: Linting Kickstarter with this PR took 5.0s vs 4.98s on master (0% slower)
:book: Linting Moya with this PR took 0.48s vs 0.45s on master (6% slower)
:book: Linting Nimble with this PR took 0.41s vs 0.41s on master (0% slower)
:book: Linting Quick with this PR took 0.19s vs 0.19s on master (0% slower)
:book: Linting Realm with this PR took 1.53s vs 1.53s on master (0% slower)
:book: Linting SourceKitten with this PR took 0.33s vs 0.33s on master (0% slower)
:book: Linting Sourcery with this PR took 1.92s vs 1.93s on master (0% faster)
:book: Linting Swift with this PR took 3.17s vs 3.16s on master (0% slower)
:book: Linting WordPress with this PR took 6.1s vs 6.11s on master (0% faster)

Generated by :no_entry_sign: Danger

SwiftLintBot avatar Jun 12 '21 20:06 SwiftLintBot