exec pint --no-color lint --min-severity=info rules
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=INFO msg="Finding all rules to check" paths=["rules"]
level=INFO msg="Checking Prometheus rules" entries=1 workers=10 online=true
Information: use humanize filters for the results (alerts/template)
  ---> rules/0001.yml:5-7 -> `foo`
5 |     expr: rate(errors[2m]) > 0
              ^^^^^^^^^^^^^^^^ `rate()` will produce results that are hard for humans to read.
  |     [...]
7 |       summary: 'error rate: {{ $value }}'
                                   ^^^^^^^
                                   Use one of the humanize template functions to make the result more
                                   readable.

level=INFO msg="Problems found" Information=1
-- rules/0001.yml --
groups:
- name: foo
  rules:
  - alert: foo
    expr: rate(errors[2m]) > 0
    annotations:
      summary: 'error rate: {{ $value }}'
