Skip to content

hk util forbid-submodules

  • Usage: hk util forbid-submodules [PATHS]…
  • Effect: read-only

Check that the repository contains no git submodules

Arguments

  • [PATHS]… — Paths to check. Defaults to the whole repository.

Flags

  • -h --help — Print help

Examples

Check the whole repository, or narrow the check to specific paths.

sh
hk util forbid-submodules
hk util forbid-submodules vendor

Learn more

Built-in linters and utilities · Troubleshooting · All commands

MIT LicenseCopyright © 2026jdx.dev