Skip to content

Git hygiene

Rule kinds in the Git hygiene family. Each entry below has its own page with options, an example, and any auto-fix support.

  • no_submodules — Flag the presence of .gitmodules at the repo root — always, regardless of paths.
  • commented_out_code — Heuristic detector for blocks of commented-out source code (as opposed to prose comments, license headers, doc comments, or ASCII banners).
  • markdown_paths_resolve — Validate that backticked workspace paths in markdown files resolve to real files or directories in the repo.
  • git_no_denied_paths — Fire when any tracked file matches a configured glob denylist.
  • git_commit_message — Validate HEAD’s commit-message shape via regex, max-subject-length, or required-body.
  • git_blame_age — Fire on lines matching a regex whose git blame author-time is older than max_age_days.