wdl icon indicating copy to clipboard operation
wdl copied to clipboard

feat: format

Open a-frantz opened this issue 7 months ago • 1 comments

Describe the problem or feature in addition to a link to the issues.

New crate, wdl-format! Handles all things formatting!

In the interest of keeping this PR from sprawling further, there are some known issues/TODOs that will be handled in follow-up PRs.

  1. Right now, every Expr is just copied verbatim instead of being actually formatted. Actually formatted them in all their complexity will involve a lot of new code.
  2. Placeholders in literal strings are similarly copied verbatim, but will be formatted in a follow-up
  3. Whitespace is always ignored in the current PR. A future PR will implement respecting certain line-breaks and blank lines.
  4. Sorting input sections

Before submitting this PR, please make sure:

  • [x] You have added a few sentences describing the PR here.
  • [x] You have added yourself or the appropriate individual as the assignee.
  • [x] You have added at least one relevant code reviewer to the PR.
  • [x] Your code builds clean without any errors or warnings.
  • [x] You have added tests (when appropriate).
  • [x] You have updated the README or other documentation to account for these changes (when appropriate).
  • [x] You have added an entry to the relevant CHANGELOG.md (see "keep a changelog" for more information).
  • [x] Your commit messages follow the conventional commit style.

a-frantz avatar Jul 17 '24 13:07 a-frantz