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="Finding all rules to check" paths=["rules"]
rules/0001.yml:8 Fatal: incomplete rule, no alert or record key (yaml/parse)
 8 |   - expr: sum(foo)

level=INFO msg="Problems found" Fatal=1
level=ERROR msg="Fatal error" err="found 1 problem(s) with severity Bug or higher"
-- rules/0001.yml --
groups:
- name: foo
  rules:
  - record: "colo:test1"
    expr: sum(foo) without(job)
    labels:
      job: foo
  - expr: sum(foo)
    labels:
      job: foo
-- .pint.hcl --
rule {
    aggregate ".+" {
        keep = [ "job" ]
    }
}
