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

-- stderr.txt --
level=info msg="Loading configuration file" path=.pint.hcl
level=error msg="Failed to unmarshal file content" error="0:0: group \"foo\", rule 2, \"\": one of 'record' or 'alert' must be set" lines=1-10 path=rules/0001.yml
rules/0001.yml:1: 0:0: group "foo", rule 2, "": one of 'record' or 'alert' must be set (yaml/parse)
groups:

level=info msg="Problems found" Fatal=1
level=fatal msg="Fatal error" error="problems found"
-- 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" ]
    }
}
