Skip to content

Formatter #23

Description

@justinmchase
  • Opinionated, no formatting parameters available
  • Can be run in check mode, which makes no changes but emits errors if there are differences
  • Comments must be preserved
  • Reads any file, parses it to ast, re-generates code from that ast
    • in check mode, diff the two generate errors
    • in non-check mode write the formatted version back to disk

Its possible a generic formatter parser will need to be written which knows how to parse blocked code and pay attention to line endings and preserve comments. It would be a language agnostic formatter, not sure if thats actually possible or if we just need to make the full parser aware of whitespace and comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions