Technique · Hygiene
File hygiene
Cheap checks on files as files: valid syntax for config formats, no merge markers, no trailing whitespace, no oversized or binary blobs.
Sub-techniques
-
Config syntax validation
V1002.001Parse every JSON, YAML and TOML file, and validate the important ones against a schema.
-
Merge marker and whitespace checks
V1002.002Reject conflict markers, trailing whitespace and missing final newlines.
-
Large file guard
V1002.003Refuse files above a size limit so binaries go to LFS or object storage.