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"]
level=WARN msg="Failed to parse file content" err="error at line 2: top level field must be a groups key, got list" path=rules/strict.yml lines=1-4
rules/strict.yml:1 Fatal: YAML parser returned an error when reading this file: `error at line 2: top level field must be a groups key, got list`. (yaml/parse)
 1 | {%- raw %} # pint ignore/line

level=INFO msg="Problems found" Fatal=1
level=ERROR msg="Fatal error" err="found 1 problem(s) with severity Bug or higher"
-- rules/strict.yml --
{%- raw %} # pint ignore/line
- alert: No Owner
  expr: up > 0

-- rules/relaxed.yml --
{%- raw %} # pint ignore/line
- alert: Owner Set
  expr: up{job="foo"} == 0
-- .pint.hcl --
parser {
  relaxed = ["rules/relaxed.*"]
}
