warn (top level) | [] | — | — | Checks or rule IDs to report without failing the run (see "Report a rule without enforcing it") |
commit.conventional_commits | true | --conventional-commits | CCHK_CONVENTIONAL_COMMITS | Enforce the Conventional Commits format (CC001) |
commit.message_pattern | "" | — | CCHK_MESSAGE_PATTERN | Custom regex the whole message must match; when set it replaces the Conventional Commits check (still reported as CC001) |
commit.subject_capitalized | false | --subject-capitalized | CCHK_SUBJECT_CAPITALIZED | Require the subject to start with a capital letter (CC002) |
commit.subject_imperative | false | --subject-imperative | CCHK_SUBJECT_IMPERATIVE | Require the subject to use the imperative mood (CC003) |
commit.subject_max_length | 80 | --subject-max-length | CCHK_SUBJECT_MAX_LENGTH | Maximum subject length (CC004), not counting the (#123) a GitHub squash merge adds; the Revert "..." and Reapply "..." subjects git revert writes, and the fixup!, squash! and amend! subjects git commit --fixup and --squash write, are not measured; 0 turns it off. Commits by dependabot[bot] and renovate[bot] skip both length rules |
commit.subject_min_length | 5 | --subject-min-length | CCHK_SUBJECT_MIN_LENGTH | Minimum subject length (CC005); 0 turns it off |
commit.allow_commit_types | feat, fix, docs, style, refactor, test, chore, perf, build, ci, revert | --allow-commit-types | CCHK_ALLOW_COMMIT_TYPES | Allowed <type> values in the subject |
commit.allow_merge_commits | true | --allow-merge-commits | CCHK_ALLOW_MERGE_COMMITS | Allow merge commits (CC006) |
commit.allow_revert_commits | true | --allow-revert-commits | CCHK_ALLOW_REVERT_COMMITS | Allow the Revert "..." and Reapply "..." commits git revert writes (CC007) |
commit.allow_empty_commits | true | --allow-empty-commits | CCHK_ALLOW_EMPTY_COMMITS | Allow empty commit messages (CC008) |
commit.allow_fixup_commits | true | --allow-fixup-commits | CCHK_ALLOW_FIXUP_COMMITS | Allow fixup!, squash! and amend! commits (CC009) |
commit.allow_wip_commits | true | --allow-wip-commits | CCHK_ALLOW_WIP_COMMITS | Allow WIP commits (CC010) |
commit.require_body | false | --require-body | CCHK_REQUIRE_BODY | Require a commit body (CC011) |
commit.body_max_line_length | 0 | --body-max-line-length | CCHK_BODY_MAX_LINE_LENGTH | Maximum length of a body line (CC018); 0 turns it off. Lines with a URL, a single word with no space (a path, a hash) and the trailer block are not counted, and dependabot[bot] and renovate[bot] commits skip it |
commit.require_signed_off_by | false | --require-signed-off-by | CCHK_REQUIRE_SIGNED_OFF_BY | Require a Signed-off-by: trailer (CC012) |
commit.ignore_authors | [] | --ignore-authors | CCHK_IGNORE_AUTHORS | Authors and co-authors whose commits skip the commit checks |
commit.ai_attribution | "ignore" | --ai-attribution | CCHK_AI_ATTRIBUTION | ignore, forbid or disclose. forbid rejects commits carrying known AI tool signatures (CC013); disclose accepts AI assistance disclosed with one of ai_disclosure_trailers (CC014) and rejects the tool as a co-author (CC015) or as a sign-off (CC016); both reject a commit whose author is an AI tool (CC017) |
commit.ai_disclosure_trailers | Assisted-by, Generated-by | --ai-disclosure-trailers | CCHK_AI_DISCLOSURE_TRAILERS | Trailers that disclose AI assistance under disclose; the first is the one a fix is written with. List Co-authored-by to accept the tool as a co-author |
commit.ai_disclosure_pattern | "" | --ai-disclosure-pattern | CCHK_AI_DISCLOSURE_PATTERN | Regex the disclosure's value must match under disclose, e.g. ^\S+/\S+ for agent/model; empty accepts any value, but a trailer with no value at all is always reported |
commit.author_email_pattern | "^.+@.+$" | --author-email-pattern | CCHK_AUTHOR_EMAIL_PATTERN | Regex the author email must match (CC102, with --author-email) |
commit.author_name_pattern | "" | --author-name-pattern | CCHK_AUTHOR_NAME_PATTERN | Regex the author name must match (CC101, with --author-name) |
branch.conventional_branch | true | --conventional-branch | CCHK_CONVENTIONAL_BRANCH | Enforce <type>/<description> branch names (CC201) |
branch.require_description_grammar | false | --require-description-grammar | CCHK_REQUIRE_DESCRIPTION_GRAMMAR | Also hold the description after <type>/ to the Conventional Branch grammar: lowercase alphanumeric words joined by single hyphens, dots allowed inside a word (CC201). Off by default, since bot branches such as dependabot/npm_and_yarn/lodash-4.17.21 do not follow it |
branch.allow_branch_types | feature, bugfix, hotfix, release, chore, feat, fix, build, ci, docs, perf, refactor, test, style, ai, claude, codex, copilot, cursor, agents, dependabot, renovate | --allow-branch-types | CCHK_ALLOW_BRANCH_TYPES | Allowed branch <type> prefixes; each entry is a regex matched against the whole type |
branch.allow_branch_names | [] | --allow-branch-names | CCHK_ALLOW_BRANCH_NAMES | Extra branch names allowed besides main, master, develop, HEAD, PR-.+, gh-readonly-queue/.+ (GitHub merge queue); each entry is a regex matched against the whole branch name, so create-pull-request/.+ allows a family of them |
branch.require_rebase_target | "" | --require-rebase-target | CCHK_REQUIRE_REBASE_TARGET | Branch the current branch must be rebased onto (CC202); empty disables |
branch.ignore_authors | [] | --branch-ignore-authors | CCHK_BRANCH_IGNORE_AUTHORS | Authors whose branches skip the branch checks |
push.allow_force_push | true | — (--no-force-push runs the check) | CCHK_ALLOW_FORCE_PUSH | Reserved; has no effect today. CC301 runs only with --no-force-push, which always rejects a non-fast-forward push |
tag.regex | SemVer with optional v | --tag-regex | CCHK_TAG_REGEX | Pattern tag names must match (CC401); empty disables |
files.max_size | "" (off) | --files-max-size | CCHK_FILES_MAX_SIZE | Largest committed file, in bytes or with KB/MB/GB (CC302) |
files.prohibited_patterns | [] | --files-prohibited-patterns | CCHK_FILES_PROHIBITED_PATTERNS | fnmatch patterns committed paths must not match (CC303) |
files.max_path_length | 0 (off) | --files-max-path-length | CCHK_FILES_MAX_PATH_LENGTH | Longest allowed committed path, in characters (CC304) |
agent.enabled | false | --agent-enabled | CCHK_AGENT_ENABLED | Report risky settings in the agent config files a commit touches, with --files: MCP servers approved without asking (CC601), API requests sent to another endpoint (CC602), commands run without asking or outside the sandbox (CC603), and agent workflows anyone can start (CC604). Covers Claude Code, Codex, Gemini CLI, Cursor CLI, GitHub Copilot in VS Code and the Claude Code GitHub Action; the list is agent_configs.toml |
agent.allow_mcp_servers | [] | --agent-allow-mcp-servers | CCHK_AGENT_ALLOW_MCP_SERVERS | MCP servers, by name, that the agent config may approve (CC601) |
agent.allow_api_endpoints | [] | --agent-allow-api-endpoints | CCHK_AGENT_ALLOW_API_ENDPOINTS | API endpoint URLs the agent config may send requests to (CC602), such as your company's LLM gateway |
pull_request.ai_declaration_checkboxes | [] (off) | — | — | The AI declaration checkboxes of your pull request template (often headed "AI disclosure"), e.g. ["No AI tools were used", "AI tools were used"]. A description checked with --ai-attribution-only must tick exactly one of them (CC501). Each entry matches a box whose text starts with it, ignoring case and bold; boxes in HTML comments and code blocks do not count |