! 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
Bug: problem reported by config rule (rule/report)
  ---> rules/1.yml:3-4 -> `bar`
3 | - record: bar
              ^^^ You cannot add any recording rules to this Prometheus server.

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/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"
  }
}

