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!
A canonical formatter for VRL — similar to
gofmtorrustfmt— 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)
This keeps the initial scope small. We will revisit rules as we gather feedback from the community — contributions are welcome!