Skip to content

filename_regex

Basename matches a regex. Use stem: true to match the stem only.

- id: toml-kebab-or-cargo
kind: filename_regex
paths: "**/*.toml"
stem: true
pattern: "[a-z][a-z0-9_-]*|Cargo"
level: warning