You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- OPA v1.5.0 - 10% faster linting!
- tablewriter v1.0.7 - new API and somewhat prettier output
- Go version bumped to 1.23.9
- Some other minor version bumps
Performance difference `regal lint bundle`:
```
968805333 ns/op 2970674744 B/op 56876788 allocs/op
906316730 ns/op 2762815940 B/op 50799464 allocs/op
```
The `compact` format now has a style better suited for the terminal:
**Previously:**
```shell
regal lint -f compact p.rego
+------------+-------------------------------------------+
| Location | Description |
+------------+-------------------------------------------+
| p.rego:1:9 | Directory structure should mirror package |
| p.rego:1:1 | File should be formatted with `opa fmt` |
| p.rego:3:5 | Prefer := over = for assignment |
+------------+-------------------------------------------+
1 file linted , 3 violations found.
```
**Now:**
```shell
regal lint -f compact p.rego
┌────────────┬───────────────────────────────────────────┐
│ LOCATION │ DESCRIPTION │
├────────────┼───────────────────────────────────────────┤
│ p.rego:1:9 │ Directory structure should mirror package │
│ p.rego:1:1 │ File should be formatted with `opa fmt` │
│ p.rego:3:5 │ Prefer := over = for assignment │
└────────────┴───────────────────────────────────────────┘
1 file linted , 3 violations found.
```
The default `pretty` format looks the same, but uses spaces instead of tabs in some places.
Tests that rely on the exact formatting of the output may need to be updated.
Signed-off-by: Anders Eknert <anders@styra.com>
0 commit comments