Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 36ee5fbb5ae7b6a6d75afc4ed7b487f80533ff8e
      
https://github.com/WebKit/WebKit/commit/36ee5fbb5ae7b6a6d75afc4ed7b487f80533ff8e
  Author: Richard Robinson <[email protected]>
  Date:   2025-05-27 (Tue, 27 May 2025)

  Changed paths:
    M Source/WebKit/_WebKit_SwiftUI/API/View+WebViewModifiers.swift
    M Source/WebKit/_WebKit_SwiftUI/API/WebPage+SwiftUI.swift
    M Source/WebKit/_WebKit_SwiftUI/API/WebView.swift
    M Source/WebKit/_WebKit_SwiftUI/Implementation/CocoaWebViewAdapter.swift
    M Source/WebKit/_WebKit_SwiftUI/Implementation/WebViewRepresentable.swift

  Log Message:
  -----------
  [Swift in WebKit] Use swift-format to lint _WebKit_SwiftUI code
https://bugs.webkit.org/show_bug.cgi?id=293564
rdar://152014439

Reviewed by Abrar Rahman Protyasha.

Work towards having consistently formatted and linted Swift code; lint the 
_WebKit_SwiftUI codebase
for improved correctness and readability.

* Source/WebKit/_WebKit_SwiftUI/API/View+WebViewModifiers.swift:

- Fix documentation syntax inconsistencies
- Add missing documentation
- Allow a force unwrap with a justified explanation

* Source/WebKit/_WebKit_SwiftUI/API/WebPage+SwiftUI.swift:

- Add missing documentation

* Source/WebKit/_WebKit_SwiftUI/API/WebView.swift:

- Ignore the AllPublicDeclarationsHaveDocumentation rule for `body` since 
protocol requirements conventionally
do not have documentation comments of their own.
- Add missing documentation
- Remove a useless initializer

* Source/WebKit/_WebKit_SwiftUI/Implementation/CocoaWebViewAdapter.swift:

- Remove a force unwrap

* Source/WebKit/_WebKit_SwiftUI/Implementation/WebViewRepresentable.swift:

- Remove a useless spi import
- Remove a useless and inconsistent comment

Canonical link: https://commits.webkit.org/295488@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to