Skip to content

file_max_size

File must be at most max_bytes in size. Catches accidental large-blob commits.

- id: no-huge-blobs
kind: max_size
paths: "**"
max_bytes: 5242880 # 5 MiB
level: warning
OptionTypeRequiredDefaultDescription
max_bytesinteger (>= 0)yesMaximum allowed file size in bytes.

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