Skip to content

Skip autocorrect invalid source files #3343

Closed

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.

Activity

  1. jpsim commented on Sep 18, 2020

    @jpsim
    Collaborator

    Done in #3349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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