Skip to content

swift lint should invoke swift format lint to make it more discoverable. #1152

@bkhouri

Description

@bkhouri

This was reported by @mac9sb swiftlang/swift-package-manager#9654, but I was unable to move the issue to the swift-format repository.


Description

Seems to be happening in the latest version, been using the embedded lint tool for a while now but this is happening recently 6.2.3. Format still works great.

Reproduction

mac@Macs-MacBook-Air Developer % swift lint
error: unknown or missing subcommand 'swift-lint'

Expected behavior

Swift lint should print the help text.

Environment

swiftc -version

Apple Swift version 6.2.3 (swift-6.2.3-RELEASE)
Target: arm64-apple-macosx26.0
Build config: +assertions

Additional information

No response


The original poster then commented:

Ignore this I realise now it's been nested under the swift format command as swift format lint perhaps a note when running swift lint that points users in the right direction would be a good idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions