Skip to content

Add Swift 6.0 to unit tests #539

Add Swift 6.0 to unit tests

Add Swift 6.0 to unit tests #539

Triggered via pull request September 18, 2024 05:20
@tyiutyiu
opened #179
Status Failure
Total duration 36s
Artifacts

swiftlint.yml

on: pull_request_target
SwiftLint
27s
SwiftLint
Fit to window
Zoom out
Zoom in

Annotations

10 errors
SwiftLint: Sources/NostrSDK/NIP44v2Encrypting.swift#L157
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/WebSocket.swift#L83
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/LegacyDirectMessageEncrypting.swift#L84
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/EventSerializer.swift#L34
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/EventSerializer.swift#L41
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/Events/GenericRepostEvent.swift#L83
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/Events/MuteListEvent.swift#L112
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/Events/GiftWrap/GiftWrapEvent.swift#L122
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/Events/GiftWrap/SealEvent.swift#L99
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
SwiftLint: Sources/NostrSDK/Events/BookmarksListEvent.swift#L153
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)