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

-- stderr.txt --
rules/strict.yml:4 Fatal: "foo bar": invalid field 'annotations' in recording rule (yaml/parse)
 4 |   - record: foo bar

rules/strict.yml:4 Fatal: "foo bar": invalid recording rule name: foo bar (yaml/parse)
 4 |   - record: foo bar

level=info msg="Problems found" Fatal=2
level=fatal msg="Fatal error" error="problems found"
-- rules/strict.yml --
groups:
- name: foo
  rules:
  - record: foo bar
    expr: 0
    annotations:
      foo: bar
