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

-- stderr.txt --
level=INFO msg="Loading configuration file" path=.pint.hcl
level=INFO msg="Finding all rules to check" paths=["rules"]
level=INFO msg="Checking Prometheus rules" entries=1 workers=10 online=true
Bug: required annotation not set (alerts/annotation)
  ---> rules/0001.yml:1-2 -> `Instance Is Down 1`
2 |   expr: up == 0
            ^^^ `annotation_.*` annotation is required.

level=INFO msg="Problems found" Bug=1
level=ERROR msg="Execution completed with error(s)" err="found 1 problem(s) with severity Bug or higher"
-- rules/0001.yml --
- alert: Instance Is Down 1
  expr: up == 0

-- .pint.hcl --
parser {
  relaxed = [".*"]
}
rule {
  annotation "annotation_.*" {
    required = true
    severity = "bug"
  }
}
