Skip to content

file_content_matches

File contents must contain at least one match for a regex.

- id: crate-is-2024-edition
kind: content_matches
paths: "Cargo.toml"
pattern: 'edition\s*=\s*"2024"'
level: error

Fix: file_append — append declared content.