Skip to content

VRL code formatter (ergonomics) #1805

Description

@pront

A canonical formatter for VRL — similar to gofmt or rustfmt — that enforces a single standard style.

Proposed interface

This is the minimum viable interface to start:

```bash
vrl fmt file.vrl # format in place
vrl fmt --check file.vrl # exit non-zero if unformatted (CI)
```

Initial formatting rules (opinionated, not configurable)

  • 4-space indentation
  • Spaces around binary operators
  • Comments preserved as-is

This keeps the initial scope small. We will revisit rules as we gather feedback from the community — contributions are welcome!

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions