Skip to content

Skip autocorrect invalid source files #3343

@keith

Description

@keith

We recently hit this issue #2823 which incorrectly formats files when they have some invalid syntax. While we could surely fix this specific case, through some discussion about the ideal solution here, we thought it might make sense to skip autocorrection (and warn / error) when a file is invalid.

We believe that sourcekit returns this info, so that might be enough to provide to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions