Skip to content

Add an overload of map that allows you to fail the conversion by returning nil. #403

Add an overload of map that allows you to fail the conversion by returning nil.

Add an overload of map that allows you to fail the conversion by returning nil. #403

Triggered via pull request December 12, 2024 00:17
Status Success
Total duration 38s
Artifacts

swiftlint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint: Sources/Nimble/Requirement.swift#L18
Large Tuple Violation: Tuples should have at most 2 members (large_tuple)
lint: Sources/Nimble/Requirement.swift#L19
Large Tuple Violation: Tuples should have at most 2 members (large_tuple)
lint: Sources/Nimble/Requirement.swift#L38
Large Tuple Violation: Tuples should have at most 2 members (large_tuple)
lint: Sources/Nimble/Requirement.swift#L55
Large Tuple Violation: Tuples should have at most 2 members (large_tuple)
lint: Sources/Nimble/Requirement.swift#L40
Redundant Void Return Violation: Returning Void in a function declaration is redundant (redundant_void_return)
lint: Sources/Nimble/DSL+Wait.swift#L45
Function Body Length Violation: Function body should span 50 lines or less excluding comments and whitespace: currently spans 51 lines (function_body_length)
lint: Sources/Nimble/DSL+Wait.swift#L54
Redundant Void Return Violation: Returning Void in a function declaration is redundant (redundant_void_return)
lint: Sources/Nimble/DSL+Require.swift#L260
Line Length Violation: Line should be 160 characters or less; currently it has 169 characters (line_length)
lint: Sources/Nimble/DSL+Require.swift#L280
Line Length Violation: Line should be 160 characters or less; currently it has 169 characters (line_length)
lint: Sources/Nimble/Matchers/MatchError.swift#L62
Prefer Type Checking Violation: Prefer `a is X` to `a as? X != nil` (prefer_type_checking)