Skip to content

no_symlinks

Flag tracked paths that are symbolic links. Symlinks are a portability footgun: Windows NTFS needs admin rights to create them, git-for-Windows can silently flatten them, CI runners vary.

- id: no-symlinks
kind: no_symlinks
paths: "**"
level: warning
fix:
file_remove: {} # unlinks the symlink; target is untouched

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.