pint.error --no-color lint rules
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=info msg="Loading configuration file" path=.pint.hcl
level=info msg="File parsed" path=rules/0001.yml rules=3
rules/0001.yml:4-6: alert_for annotation is required (alerts/annotation)
- alert: Instance Is Down 2
  expr: up == 0
  for: 5m

rules/0001.yml:12: alert_for annotation value must match "^{{ $for }}$" (alerts/annotation)
    alert_for: 4m

level=info msg="Problems found" Bug=2
level=fatal msg="Fatal error" error="problems found"
-- rules/0001.yml --
- alert: Instance Is Down 1
  expr: up == 0

- alert: Instance Is Down 2
  expr: up == 0
  for: 5m

- alert: Instance Is Down 3
  expr: up == 0
  for: 5m
  annotations:
    alert_for: 4m

-- .pint.hcl --
parser {
  relaxed = [".*"]
}
rule {
  match {
    for = "> 0"
  }

  annotation "alert_for" {
    required = true
    value    = "{{ $for }}"
    severity = "bug"
  }
}
