Skip to content

Trailling comma added on #available macro #2293

@amaurydavid

Description

@amaurydavid

Considering the following code:

if #available(
    iOS 16.0,
    *
) {}

When using the rule trailingCommaswith --swift-version 6.2 on 0.58.7, we get

if #available(
    iOS 16.0,
    *, // <- Error "Expected platform name"
) {}

Thanks for the hard work ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions