Back to all errors

GIT021

GIT

--no-verify flag blocked

Error

The git commit command includes --no-verify or -n flag, which skips pre-commit hooks.

Why this matters

Pre-commit hooks enforce code quality, formatting, and security checks. Skipping them bypasses these protections and can introduce issues that are harder to catch later.

How to fix

Remove --no-verify and fix whatever issue the pre-commit hook reports:

# Instead of:
git commit -sS --no-verify -m "fix(parser): handle edge case"

# Fix the hook issue and commit normally:
git commit -sS -m "fix(parser): handle edge case"

Configuration

[validators.git.no_verify]
enabled = true
severity = "error"

Disable the validator:

[validators.git.no_verify]
enabled = false

Hook output

When this error is triggered, klaudiush writes JSON to stdout:

permissionDecisionReason (shown to Claude): [GIT021] Git commit --no-verify is not allowed. Remove --no-verify flag and fix any pre-commit hook issues

systemMessage (shown to user): Formatted error with fix hint and reference URL.

additionalContext (behavioral guidance): Automated klaudiush validation check. Fix the reported errors and retry the same command.

  • GIT001 - missing signoff flag
  • GIT010 - missing required flags

© 2026 Smykla Skalski Labs