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

-- stderr.txt --
level=INFO msg="Finding all rules to check" paths=["rules"]
level=WARN msg="Failed to parse file content" err="error at line 2: invalid group key alert" path=rules/strict.yml lines=1-9
rules/strict.yml:1 Fatal: YAML parser returned an error when reading this file: `error at line 2: invalid group key alert`. (yaml/parse)
 1 | groups:

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 --
groups:
- alert: Conntrack_Table_Almost_Full
  expr: ((node_nf_conntrack_entries / node_nf_conntrack_entries_limit) * 100) > 75
  for: 5m
  labels:
    component: conntrack
    priority: "3"
  annotations:
    summary: Conntrack table is at {{ $value|humanize }}%
