! 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=2 workers=10 online=true
rules/1.yml:3-4 Bug: You cannot add any recording rules to this Prometheus server. (rule/report)
 3 | - record: bar
 4 |   expr: sum(up)

level=INFO msg="Problems found" Bug=1
level=ERROR msg="Fatal error" err="found 1 problem(s) with severity Bug or higher"
-- rules/1.yml --
- alert: foo
  expr: up == 0
- record: bar
  expr: sum(up)

-- .pint.hcl --
parser {
  relaxed = [".*"]
}
rule {
  match {
    kind = "recording"
  }
  report {
    comment  = "You cannot add any recording rules to this Prometheus server."
    severity = "bug"
  }
}

