Skip to content

file_is_text

Content is detected as text (magic bytes + UTF-8 validity check) — fails on binary files matched by paths.

- id: configs-are-text
kind: file_is_text
paths: ".github/**/*.{yml,yaml}"
level: error

This rule takes no kind-specific options.

Plus the common paths, level, id, and when fields. This table is generated from the JSON Schema; option types and defaults are authoritative.