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

-- stderr.txt --
level=info msg="Loading configuration file" path=.pint.hcl
rules/0002.yml:2: job label is required and should be preserved when aggregating "^.+$" rules, remove job from without() (promql/aggregate)
 2 |   expr: sum(foo) without(job)

level=info msg="Problems found" Bug=1
level=fatal msg="Fatal error" error="problems found"
-- rules/0001.yml --
- record: "colo:test1"
  expr: sum(foo) without(job)
-- rules/0002.yml --
- record: "colo:test2"
  expr: sum(foo) without(job)
-- .pint.hcl --
parser {
  relaxed = [".*"]
}
rule {
    match {
        path = "rules/0002.yml"
    }
    aggregate ".+" {
        severity = "bug"
        keep = [ "job" ]
    }
}
