hk util
- Usage:
hk util <SUBCOMMAND> - Effect: read-only
Utility commands for file operations
Flags
-h --help— Print help
Subcommands
hk util check-added-large-files [--maxkb <MAXKB>] <FILES>…hk util check-byte-order-marker [-d --diff] <FILES>…hk util check-case-conflict <FILES>…hk util check-conventional-commit [--allowed-types <ALLOWED_TYPES>] <COMMIT_MSG_FILE>hk util check-executables-have-shebangs <FILES>…hk util check-merge-conflict [--assume-in-merge] <FILES>…hk util check-symlinks <FILES>…hk util detect-private-key <FILES>…hk util end-of-file-fixer [-d --diff] [-f --fix] <FILES>…hk util fix-byte-order-marker <FILES>…hk util fix-smart-quotes [--check] [-d --diff] <FILES>…hk util mixed-line-ending [-d --diff] [-f --fix] <FILES>…hk util no-commit-to-branch [--branch <BRANCH>]hk util python-check-ast <FILES>…hk util python-debug-statements <FILES>…hk util trailing-whitespace [-d --diff] [-f --fix] <FILES>…
Examples
Utilities run directly on the arguments you provide. Several also have ready-to-use Builtins definitions.
sh
hk util trailing-whitespace README.md
hk util end-of-file-fixer README.mdLearn more
Built-in linters and utilities · Troubleshooting · All commands
