Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.
Which rules a review applies
Every review applies the active rules of three scopes: Global → Repository → Directory.
Global rules apply to every repository.
Repository rules apply to every pull request in that repository.
Directory rules apply when the pull request is reviewed with that directory scope’s settings, which happens when it touches exactly one directory scope. The rules of the repository’s other directory scopes do not apply.
A pull request that touches no directory scope, or two or more, is reviewed with the repository’s settings. In that case the rules of all of the repository’s directory scopes apply too, to every file in the pull request.
A rule written at a parent scope is always inherited by the scopes below it. A rule that appears at two scopes with identical instructions runs once.
Reviews apply active rules from parent scopes even if the Kody Rules page shows them as disabled locally. To stop a rule from applying, pause it at the scope where it was created or narrow its Path where that field is available.
In the app
On the Kody Rules page, rules inherited from higher scopes are listed next to the scope’s own rules, marked with the scope they come from. They are read-only there: open the rule and use View, or go to the scope where it was created to edit it. Filters → View shows or hides Inherited from Global, Inherited from Repository and Disabled Rules.
Inheritable
On a rule at any scope, open Advanced settings in the rule dialog and turn off Inheritable (on by default).
The rule is no longer listed as inherited in the scopes below it.
A review still applies it at every scope as described above.
Override and disable for this scope
At a repository or directory scope, open an inherited rule (View) and turn on Override and disable for this scope.
The rule shows as Disabled at that scope, and is hidden when Disabled Rules is unchecked in Filters → View.
It does not show as disabled in scopes below, which keep their own setting.
A review still applies the rule.
To stop a rule from applying, pause or delete it at the scope where it was created.
Centralized config
A rule file in a centralized config repository can carry the same settings:
inheritance: inheritable: true exclude: [] # repository or directory IDs include: [] # repository or directory IDs
inheritable and exclude behave as described above. include has no control in the app and no effect on a review; a rule with a non-empty include list is not shown in the inherited list.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Kodus","colors":{"primary":"#F8B76D","light":"#F8B76D","dark":"#443024"},"logo":{"light":"https://mintcdn.com/kodus/AF97E4sqQ0bDm2vv/logo/light.svg?fit=max\u0026auto=format\u0026n=AF97E4sqQ0bDm2vv\u0026q=85\u0026s=f936e2273166bb149af32c25f012a088","dark":"https://mintcdn.com/kodus/AF97E4sqQ0bDm2vv/logo/dark.svg?fit=max\u0026auto=format\u0026n=AF97E4sqQ0bDm2vv\u0026q=85\u0026s=25fb99797bf5f026442124edd13ca06c","href":"https://kodus.io"},"favicon":"https://mintcdn.com/kodus/AF97E4sqQ0bDm2vv/favicon.svg?fit=max\u0026auto=format\u0026n=AF97E4sqQ0bDm2vv\u0026q=85\u0026s=20fa3480d131c22d3c2f971dec149d41","background":{"color":{"dark":"#101019"}},"navbar":{"links":[{"href":"https://discord.gg/TFZBRk9fT6","label":"Community"},{"href":"https://github.com/kodustech","label":"Github"}],"primary":{"type":"button","label":"Try Kodus","href":"https://kodus.io/"}},"footer":{"socials":{"twitter":"https://twitter.com/kodustech","github":"https://github.com/kodustech","linkedin":"https://www.linkedin.com/company/kodustech"}},"integrations":{"gtm":{"tagId":"GTM-5MWMVQDC"},"posthog":{"apiKey":"phc_eXdASBHYhvHzYCLktmceTdRKmF3jMLnrH4iCXXUGjJI"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"en/how_to_use/overview"},{"language":"es","href":"es/how_to_use/overview"},{"language":"pt-BR","href":"pt-BR/how_to_use/overview"},{"language":"ja","href":"ja/how_to_use/overview"},{"language":"zh","href":"zh/how_to_use/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kodus","hasAudioNarration":false,"actualSubdomain":"kodus","customDomains":["docs.kodus.io"],"gitSource":{"type":"github","owner":"kodustech","repo":"kodus-ai","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6b05e6680ba55d0577ca191e","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"en","tag":"How to use","count":77},{"language":"es","tag":"Cómo usar","count":77},{"language":"ja","tag":"使い方","count":77},{"language":"pt-BR","tag":"Como usar","count":77},{"language":"zh","tag":"如何使用","count":77},{"language":"en","tag":"AI Code Review","count":30},{"language":"es","tag":"Revisión de Código con IA","count":30},{"language":"ja","tag":"AIコードレビュー","count":30},{"language":"pt-BR","tag":"Revisão de código com IA","count":30},{"language":"zh","tag":"AI 代码审查","count":30},{"language":"en","tag":"Knowledge Base","count":23},{"language":"es","tag":"Base de Conocimiento","count":23},{"language":"ja","tag":"ナレッジベース","count":23},{"language":"pt-BR","tag":"Base de Conhecimento","count":23},{"language":"zh","tag":"知识库","count":23},{"language":"en","tag":"How to deploy","count":20},{"language":"es","tag":"Cómo desplegar","count":20},{"language":"ja","tag":"デプロイ方法","count":20},{"language":"pt-BR","tag":"Como implantar","count":20},{"language":"zh","tag":"如何部署","count":20},{"language":"en","tag":"Cookbook","count":18},{"language":"es","tag":"Recetario","count":18},{"language":"ja","tag":"クックブック","count":18},{"language":"pt-BR","tag":"Cookbook","count":18},{"language":"zh","tag":"食谱","count":18},{"language":"en","tag":"Cockpit","count":15},{"language":"es","tag":"Cockpit","count":15},{"language":"ja","tag":"コックピット","count":15},{"language":"pt-BR","tag":"Cockpit","count":15},{"language":"zh","tag":"驾驶舱","count":15},{"language":"en","tag":"Advanced Configs","count":14},{"language":"es","tag":"Configuraciones Avanzadas","count":14},{"language":"ja","tag":"詳細設定","count":14},{"language":"pt-BR","tag":"Configurações avançadas","count":14},{"language":"zh","tag":"高级配置","count":14},{"language":"en","tag":"Metrics","count":9},{"language":"es","tag":"Métricas","count":9},{"language":"ja","tag":"メトリクス","count":9},{"language":"pt-BR","tag":"Métricas","count":9},{"language":"zh","tag":"指标","count":9},{"language":"en","tag":"LLM Provider Setup","count":8},{"language":"en","tag":"Git providers configuration","count":8},{"language":"es","tag":"Configuración de Proveedor LLM","count":8},{"language":"es","tag":"Configuración de Proveedores Git","count":8},{"language":"ja","tag":"LLM プロバイダー設定","count":8},{"language":"ja","tag":"Gitプロバイダーの設定","count":8},{"language":"pt-BR","tag":"Configuração de Provedor LLM","count":8},{"language":"pt-BR","tag":"Configuração de Provedores Git","count":8},{"language":"zh","tag":"LLM 提供商配置","count":8},{"language":"zh","tag":"Git 提供商配置","count":8},{"language":"default","tag":"Changelog","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content:has(>.kodus-feature-badges:first-child){margin-top:0.875rem}.kodus-feature-badges{--badge-detail-bg: #fffdfa;--badge-detail-fg: #332b25;--badge-detail-border: #e3d8cd;position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:0.375rem;margin-bottom:1.625rem}.dark .kodus-feature-badges{--badge-detail-bg: #21212c;--badge-detail-fg: #efebe6;--badge-detail-border: #3b3540}.kodus-feature-badges button{padding:0.125rem 0;border-radius:0.5rem;cursor:pointer}.kodus-feature-badges button:focus-visible{outline:2px solid #d58a48;outline-offset:2px}:root:not(.dark) .kodus-feature-badges button>[data-shape]{--color-text: #604631}.kodus-feature-badge-detail{position:absolute;z-index:2;inset-inline-start:0;inset-block-start:100%;width:min(100%, 22rem);padding:0.75rem 0.875rem;border:1px solid var(--badge-detail-border);border-radius:0.625rem;background:var(--badge-detail-bg);color:var(--badge-detail-fg);box-shadow:0 0.5rem 1.5rem rgb(0 0 0 / 14%);font-size:0.875rem;line-height:1.45;overflow-wrap:anywhere}.kodus-feature-badge-detail[hidden]{display:none}#content-area:has(.kodus-changelog-release) #header .eyebrow{display:none}body:has(.kodus-changelog-release) div.ml-4.flex.text-sm.leading-6.whitespace-nowrap.min-w-0.space-x-3.overflow-hidden{display:none}body:has(.kodus-changelog-release) #content-side-layout,body:has(.kodus-changelog-release) #table-of-contents-layout,body:has(.kodus-changelog-release) #table-of-contents{display:none!important}body:has(.kodus-changelog-release) #content-container{max-width:none!important;padding-right:24rem!important}body:has(.kodus-changelog-release) #content-area{width:100%!important;max-width:54rem!important;margin-right:auto!important;margin-left:0!important}body:has(.kodus-changelog-release) header a[href*=\"changelog\"]{position:relative;color:#faf8f6!important}body:has(.kodus-changelog-release) header a[href*=\"changelog\"] *,body:has(.kodus-changelog-release) header a[href*=\"changelog\"] svg{color:#faf8f6!important;stroke:currentColor}body:has(.kodus-changelog-release) header a[href*=\"changelog\"]::after{content:\"\";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#f8b76d}body:has(.kodus-changelog-release) header a[href*=\"changelog\"]:hover,header a[href*=\"changelog\"]:hover{color:#f8b76d!important}body:has(.kodus-changelog-release) header a[href*=\"changelog\"]:hover *,body:has(.kodus-changelog-release) header a[href*=\"changelog\"]:hover svg,header a[href*=\"changelog\"]:hover *,header a[href*=\"changelog\"]:hover svg{color:#f8b76d!important;stroke:currentColor}.kodus-changelog-release{display:grid;grid-template-columns:minmax(6.5rem, 8rem) minmax(0, 36rem);column-gap:1.75rem;align-items:start;margin-top:2.5rem;padding-top:2rem;border-top:1px solid rgba(248, 183, 109, 0.18)}.kodus-changelog-release[hidden]{display:none!important}.kodus-changelog-meta{position:sticky;top:8.5rem;align-self:start;display:flex;flex-direction:column;align-items:flex-start;gap:0.65rem}.kodus-changelog-date{color:inherit;font:inherit;font-weight:600;line-height:inherit}.kodus-changelog-rss-source{display:none}.kodus-changelog-content{min-width:0;max-width:36rem}.kodus-changelog-shell{position:relative}.kodus-changelog-filter-panel{margin-top:0}.kodus-changelog-filter-control{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;appearance:none;border:1px solid transparent;border-radius:inherit;background:transparent;cursor:pointer}.kodus-changelog-filter-sidebar{position:fixed;top:12rem;right:max(2rem, calc((100vw - 88rem) / 2 + 2rem));width:20rem;z-index:9999;pointer-events:auto}.kodus-changelog-filter-heading{margin:0 0 0.7rem;color:#faf8f6;font:inherit;font-size:0.78em;font-weight:600;line-height:1.2}.kodus-changelog-filter-options{display:flex;flex-wrap:wrap;gap:0.55rem}.kodus-changelog-filter-button{position:relative;display:inline-flex;align-items:center;min-height:1.85rem;border:0;border-radius:999px;background:rgba(255, 255, 255, 0.06);color:inherit;cursor:pointer;padding:0.24rem 0.78rem;font:inherit;font-size:0.78em;font-weight:500;line-height:1;white-space:nowrap;user-select:none;overflow:hidden;transition:background-color 140ms ease,\n color 140ms ease}.kodus-changelog-filter-button span{position:relative;z-index:2;pointer-events:none}.kodus-changelog-filter-button:hover .kodus-changelog-filter-control:not(:checked){background:rgba(248, 183, 109, 0.12)}.kodus-changelog-filter-button:hover span{color:#f8b76d}.kodus-changelog-filter-button.is-selected,.kodus-changelog-filter-button:has(.kodus-changelog-filter-control:checked){border-color:rgba(248, 183, 109, 0.22)!important;background:rgba(248, 183, 109, 0.14)!important;color:#f8b76d!important}.kodus-changelog-filter-control:checked{border-color:rgba(248, 183, 109, 0.22)!important;background:rgba(248, 183, 109, 0.14)!important}.kodus-changelog-filter-control:checked+span{color:#f8b76d!important}.kodus-changelog-shell:has(.kodus-changelog-filter-control:checked) .kodus-changelog-filterable,.kodus-changelog-shell:has(.kodus-changelog-filter-control:checked) .kodus-changelog-section{display:none}.kodus-changelog-shell:has(.kodus-changelog-filter-control:checked) .kodus-changelog-release{display:none}.kodus-changelog-shell:has(#kodus-filter-security:checked) .filter-security,.kodus-changelog-shell:has(#kodus-filter-cockpit:checked) .filter-cockpit,.kodus-changelog-shell:has(#kodus-filter-byok:checked) .filter-byok,.kodus-changelog-shell:has(#kodus-filter-ai-engine:checked) .filter-ai-engine,.kodus-changelog-shell:has(#kodus-filter-self-hosted:checked) .filter-self-hosted,.kodus-changelog-shell:has(#kodus-filter-git-provider:checked) .filter-git-provider,.kodus-changelog-shell:has(#kodus-filter-performance:checked) .filter-performance,.kodus-changelog-shell:has(#kodus-filter-ux-interface:checked) .filter-ux-interface,.kodus-changelog-shell:has(#kodus-filter-notifications:checked) .filter-notifications,.kodus-changelog-shell:has(#kodus-filter-kody-rules:checked) .filter-kody-rules,.kodus-changelog-shell:has(#kodus-filter-mcp:checked) .filter-mcp,.kodus-changelog-shell:has(#kodus-filter-custom-agents:checked) .filter-custom-agents,.kodus-changelog-shell:has(#kodus-filter-billing-licenses:checked) .filter-billing-licenses,.kodus-changelog-shell:has(#kodus-filter-cli:checked) .filter-cli,.kodus-changelog-shell:has(#kodus-filter-security:checked) .kodus-changelog-section:has(.filter-security),.kodus-changelog-shell:has(#kodus-filter-cockpit:checked) .kodus-changelog-section:has(.filter-cockpit),.kodus-changelog-shell:has(#kodus-filter-byok:checked) .kodus-changelog-section:has(.filter-byok),.kodus-changelog-shell:has(#kodus-filter-ai-engine:checked) .kodus-changelog-section:has(.filter-ai-engine),.kodus-changelog-shell:has(#kodus-filter-self-hosted:checked) .kodus-changelog-section:has(.filter-self-hosted),.kodus-changelog-shell:has(#kodus-filter-git-provider:checked) .kodus-changelog-section:has(.filter-git-provider),.kodus-changelog-shell:has(#kodus-filter-performance:checked) .kodus-changelog-section:has(.filter-performance),.kodus-changelog-shell:has(#kodus-filter-ux-interface:checked) .kodus-changelog-section:has(.filter-ux-interface),.kodus-changelog-shell:has(#kodus-filter-notifications:checked) .kodus-changelog-section:has(.filter-notifications),.kodus-changelog-shell:has(#kodus-filter-kody-rules:checked) .kodus-changelog-section:has(.filter-kody-rules),.kodus-changelog-shell:has(#kodus-filter-mcp:checked) .kodus-changelog-section:has(.filter-mcp),.kodus-changelog-shell:has(#kodus-filter-custom-agents:checked) .kodus-changelog-section:has(.filter-custom-agents),.kodus-changelog-shell:has(#kodus-filter-billing-licenses:checked) .kodus-changelog-section:has(.filter-billing-licenses),.kodus-changelog-shell:has(#kodus-filter-cli:checked) .kodus-changelog-section:has(.filter-cli){display:block}.kodus-changelog-shell:has(#kodus-filter-security:checked) .kodus-changelog-release:has(.filter-security),.kodus-changelog-shell:has(#kodus-filter-cockpit:checked) .kodus-changelog-release:has(.filter-cockpit),.kodus-changelog-shell:has(#kodus-filter-byok:checked) .kodus-changelog-release:has(.filter-byok),.kodus-changelog-shell:has(#kodus-filter-ai-engine:checked) .kodus-changelog-release:has(.filter-ai-engine),.kodus-changelog-shell:has(#kodus-filter-self-hosted:checked) .kodus-changelog-release:has(.filter-self-hosted),.kodus-changelog-shell:has(#kodus-filter-git-provider:checked) .kodus-changelog-release:has(.filter-git-provider),.kodus-changelog-shell:has(#kodus-filter-performance:checked) .kodus-changelog-release:has(.filter-performance),.kodus-changelog-shell:has(#kodus-filter-ux-interface:checked) .kodus-changelog-release:has(.filter-ux-interface),.kodus-changelog-shell:has(#kodus-filter-notifications:checked) .kodus-changelog-release:has(.filter-notifications),.kodus-changelog-shell:has(#kodus-filter-kody-rules:checked) .kodus-changelog-release:has(.filter-kody-rules),.kodus-changelog-shell:has(#kodus-filter-mcp:checked) .kodus-changelog-release:has(.filter-mcp),.kodus-changelog-shell:has(#kodus-filter-custom-agents:checked) .kodus-changelog-release:has(.filter-custom-agents),.kodus-changelog-shell:has(#kodus-filter-billing-licenses:checked) .kodus-changelog-release:has(.filter-billing-licenses),.kodus-changelog-shell:has(#kodus-filter-cli:checked) .kodus-changelog-release:has(.filter-cli){display:grid}.kodus-changelog-empty{display:none;margin:0;color:inherit;font:inherit;line-height:inherit}.kodus-changelog-section+.kodus-changelog-section{margin-top:3rem;padding-top:2rem;border-top:1px solid rgba(248, 183, 109, 0.16)}.kodus-changelog-section-label{display:block;margin:0 0 2rem;color:#f8b76d;font:inherit;font-size:1em;font-weight:700;letter-spacing:0;line-height:inherit;text-transform:none}.kodus-changelog-item+.kodus-changelog-item{margin-top:2.5rem}.kodus-changelog-copy+.kodus-changelog-title,.kodus-changelog-list+.kodus-changelog-title,.kodus-changelog-video+.kodus-changelog-title{margin-top:1.75rem}.kodus-changelog-title{margin:0;color:#ffffff;font:inherit;font-size:1.25em;font-weight:700;letter-spacing:0;line-height:1.35}.kodus-changelog-copy{display:block;margin:0.85rem 0 0;color:inherit;font:inherit;line-height:inherit}.kodus-changelog-link{color:#f8b76d;font-weight:700;text-decoration:underline;text-decoration-color:rgba(248, 183, 109, 0.7);text-underline-offset:0.2em}.kodus-changelog-code{border-radius:0.35rem;background:rgba(248, 183, 109, 0.14);color:#f8b76d;padding:0.1rem 0.35rem;font-size:0.9em}.kodus-changelog-video{display:block;width:100%;margin:1.25rem 0 0;border:1px solid rgba(248, 183, 109, 0.22);border-radius:8px;background:rgba(0, 0, 0, 0.25)}.kodus-changelog-list{margin:0.85rem 0 0;padding-left:1.25rem;color:inherit;font:inherit;line-height:inherit}.kodus-changelog-list li+li{margin-top:0.5rem}.kodus-changelog-fix-list{margin-top:0.85rem}.kodus-changelog-fix{padding-left:1.25rem;position:relative}.kodus-changelog-fix .kodus-changelog-copy{margin-top:0}.kodus-changelog-fix-label{color:#ffffff;font-weight:700}.kodus-changelog-fix::before{content:\"\";position:absolute;top:0.75em;left:0.15rem;width:0.35rem;height:0.35rem;border-radius:999px;background:currentColor;opacity:0.68}.kodus-changelog-fix+.kodus-changelog-fix{margin-top:1.1rem}@media (max-width: 1120px){.kodus-changelog-release{grid-template-columns:6.5rem minmax(0, 1fr);column-gap:1.25rem}.kodus-changelog-filter-sidebar{grid-column:1 / -1;grid-row:1;position:static;margin-bottom:1.5rem;width:auto}.kodus-changelog-meta{grid-column:1;grid-row:2}.kodus-changelog-content{grid-column:2;grid-row:2}}@media (prefers-color-scheme: light){.kodus-changelog-title{color:#111827}.kodus-changelog-fix-label{color:#111827}}"}]}
{"page":{"pagePath":"en/how_to_use/code_review/configs/rules_inheritance","slug":"/en/how_to_use/code_review/configs/rules_inheritance","pageMetadata":{"title":"Rule Inheritance","description":"Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.","href":"/en/how_to_use/code_review/configs/rules_inheritance"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`which-rules-a-review-applies`,children:`Which rules a review applies`}),`\n`,_jsxs(_components.p,{children:[`Every review applies the active rules of three scopes: `,_jsx(_components.strong,{children:`Global → Repository → Directory`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Global`}),` rules apply to every repository.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Repository`}),` rules apply to every pull request in that repository.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Directory`}),` rules apply when the pull request is reviewed with that directory scope’s settings, which happens when it touches exactly one directory scope. The rules of the repository’s other directory scopes do not apply.`]}),`\n`,_jsxs(_components.li,{children:[`A pull request that touches no directory scope, or two or more, is reviewed with the repository’s settings. In that case the rules of `,_jsx(_components.strong,{children:`all`}),` of the repository’s directory scopes apply too, to every file in the pull request.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`A rule written at a parent scope is always inherited by the scopes below it. A rule that appears at two scopes with identical instructions runs once.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Reviews apply active rules from parent scopes even if the `,_jsx(_components.strong,{children:`Kody Rules`}),` page shows them as disabled locally. To stop a rule from applying, pause it at the scope where it was created or narrow its `,_jsx(_components.strong,{children:`Path`}),` where that field is available.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`in-the-app`,children:`In the app`}),`\n`,_jsxs(_components.p,{children:[`On the `,_jsx(_components.strong,{children:`Kody Rules`}),` page, rules inherited from higher scopes are listed next to the scope’s own rules, marked with the scope they come from. They are read-only there: open the rule and use `,_jsx(_components.strong,{children:`View`}),`, or go to the scope where it was created to edit it. `,_jsx(_components.strong,{children:`Filters → View`}),` shows or hides `,_jsx(_components.strong,{children:`Inherited from Global`}),`, `,_jsx(_components.strong,{children:`Inherited from Repository`}),` and `,_jsx(_components.strong,{children:`Disabled Rules`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`inheritable`,children:`Inheritable`}),`\n`,_jsxs(_components.p,{children:[`On a rule at any scope, open `,_jsx(_components.strong,{children:`Advanced settings`}),` in the rule dialog and turn off `,_jsx(_components.strong,{children:`Inheritable`}),` (on by default).`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The rule is no longer listed as inherited in the scopes below it.`}),`\n`,_jsx(_components.li,{children:`A review still applies it at every scope as described above.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`override-and-disable-for-this-scope`,children:`Override and disable for this scope`}),`\n`,_jsxs(_components.p,{children:[`At a repository or directory scope, open an inherited rule (`,_jsx(_components.strong,{children:`View`}),`) and turn on `,_jsx(_components.strong,{children:`Override and disable for this scope`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The rule shows as `,_jsx(_components.strong,{children:`Disabled`}),` at that scope, and is hidden when `,_jsx(_components.strong,{children:`Disabled Rules`}),` is unchecked in `,_jsx(_components.strong,{children:`Filters → View`}),`.`]}),`\n`,_jsx(_components.li,{children:`It does not show as disabled in scopes below, which keep their own setting.`}),`\n`,_jsx(_components.li,{children:`A review still applies the rule.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`To stop a rule from applying, pause or delete it at the scope where it was created.`}),`\n`,_jsx(Heading,{level:`2`,id:`centralized-config`,children:`Centralized config`}),`\n`,_jsxs(_components.p,{children:[`A rule file in a `,_jsx(_components.a,{href:`/en/how_to_use/code_review/configs/centralized_config`,children:`centralized config`}),` repository can carry the same settings:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`inheritance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` inheritable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` exclude`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# repository or directory IDs`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` include`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# repository or directory IDs`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`inheritable`}),` and `,_jsx(_components.code,{children:`exclude`}),` behave as described above. `,_jsx(_components.code,{children:`include`}),` has no control in the app and no effect on a review; a rule with a non-empty `,_jsx(_components.code,{children:`include`}),` list is not shown in the inherited list.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.a,{href:`/en/how_to_use/code_review/configs/kody_rules`,children:`Kody Rules Overview`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.a,{href:`/en/how_to_use/code_review/configs/directory_level`,children:`Directory-Level Settings`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.a,{href:`/en/how_to_use/code_review/configs/inheritance_overrides`,children:`Config Inheritance \u0026 Overrides`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.a,{href:`/en/how_to_use/code_review/configs/centralized_config`,children:`Centralized Config`}),`\n`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Rule Inheritance","description":"Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.","href":"/en/how_to_use/code_review/configs/rules_inheritance"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Which rules a review applies","slug":"which-rules-a-review-applies","depth":2,"children":[]},{"title":"In the app","slug":"in-the-app","depth":2,"children":[{"title":"Inheritable","slug":"inheritable","depth":3,"children":[]},{"title":"Override and disable for this scope","slug":"override-and-disable-for-this-scope","depth":3,"children":[]}]},{"title":"Centralized config","slug":"centralized-config","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"kodus","siteName":"Kodus","title":"Rule Inheritance - Kodus","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/how_to_use/code_review/configs/rules_inheritance","matchLevel":0},"es":{"href":"/es/how_to_use/code_review/configs/rules_inheritance","matchLevel":1},"pt-BR":{"href":"/pt-BR/how_to_use/code_review/configs/rules_inheritance","matchLevel":1},"ja":{"href":"/ja/how_to_use/code_review/configs/rules_inheritance","matchLevel":1},"zh":{"href":"/zh/how_to_use/code_review/configs/rules_inheritance","matchLevel":1}}},"lastModified":"2026-11-21T18:23:50.797Z","originalFileLocation":"en/how_to_use/code_review/configs/rules_inheritance.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kodus\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Rule Inheritance - Kodus\">\u003cmeta data-mint-head property=\"og:description\" content=\"Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kodus\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kodus.mintlify.site/_mintlify/api/og/v2?division=Kody+Rules\u0026amp;title=Rule+Inheritance\u0026amp;description=Which+Global%2C+Repository+and+Directory+rules+a+review+applies%2C+and+what+the+Inheritable+and+Override+and+disable+controls+change.\u0026amp;theme=38dae7d6b4994b977d0bfe1e\u0026amp;signature=7b245d99cbeb6a2ed3f37603588d95d0facf702bf2b0b4136c883283dc09106c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Rule Inheritance - Kodus\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kodus.mintlify.site/_mintlify/api/og/v2?division=Kody+Rules\u0026amp;title=Rule+Inheritance\u0026amp;description=Which+Global%2C+Repository+and+Directory+rules+a+review+applies%2C+and+what+the+Inheritable+and+Override+and+disable+controls+change.\u0026amp;theme=38dae7d6b4994b977d0bfe1e\u0026amp;signature=7b245d99cbeb6a2ed3f37603588d95d0facf702bf2b0b4136c883283dc09106c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kodus/PQ3FvCcQd6QjpCLU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kodus\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F8B76D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/how_to_use/code_review/configs/rules_inheritance.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.kodus.io/es/how_to_use/code_review/configs/rules_inheritance\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.kodus.io/pt-BR/how_to_use/code_review/configs/rules_inheritance\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.kodus.io/ja/how_to_use/code_review/configs/rules_inheritance\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.kodus.io/zh/how_to_use/code_review/configs/rules_inheritance\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kodus.io/#organization\",\"name\":\"Kodus\",\"url\":\"https://docs.kodus.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kodus/AF97E4sqQ0bDm2vv/logo/light.svg?fit=max\u0026auto=format\u0026n=AF97E4sqQ0bDm2vv\u0026q=85\u0026s=f936e2273166bb149af32c25f012a088\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kodus.io#website\",\"name\":\"Kodus\",\"url\":\"https://docs.kodus.io\",\"publisher\":{\"@id\":\"https://docs.kodus.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance#webpage\",\"url\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance\",\"name\":\"Rule Inheritance\",\"description\":\"Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.\",\"dateModified\":\"2026-11-21T18:23:50.797Z\",\"isPartOf\":{\"@id\":\"https://docs.kodus.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI Code Review\",\"item\":\"https://docs.kodus.io/en/how_to_use/code_review/flow\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kody Rules\",\"item\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/kody_rules\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Rule Inheritance\",\"item\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance#article\",\"headline\":\"Rule Inheritance\",\"name\":\"Rule Inheritance\",\"description\":\"Which Global, Repository and Directory rules a review applies, and what the Inheritable and Override and disable controls change.\",\"url\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kodus.io/en/how_to_use/code_review/configs/rules_inheritance#webpage\"},\"dateModified\":\"2026-11-21T18:23:50.797Z\",\"publisher\":{\"@id\":\"https://docs.kodus.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kodus.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kodus\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kodus\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/how_to_use/code_review/configs/rules_inheritance.md","siteName":"Kodus","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"How to use","icon":"gamepad-modern","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/en/how_to_use/overview"},{"title":"Getting Started","href":"/en/how_to_use/quickstart"}]},{"group":"Billing \u0026 Licenses","pages":[{"title":"Plans and Licenses","href":"/en/how_to_use/pricing"},{"group":"BYOK","pages":[{"title":"BYOK - Bring Your Own Key","sidebarTitle":"Overview","href":"/en/how_to_use/byok"},{"title":"BYOK providers","sidebarTitle":"Providers","href":"/en/how_to_use/byok/providers"},{"title":"BYOK model settings","sidebarTitle":"Model settings","href":"/en/how_to_use/byok/model_settings"},{"title":"BYOK troubleshooting and FAQ","sidebarTitle":"Troubleshooting","href":"/en/how_to_use/byok/troubleshooting"}]},{"title":"Monthly Spend Limit","href":"/en/how_to_use/spend-limit"}]},{"group":"AI Code Review","pages":[{"title":"Code Review Flow","href":"/en/how_to_use/code_review/flow"},{"title":"Steer a Review (Focus)","href":"/en/how_to_use/code_review/review_directive"},{"title":"Review Policy","href":"/en/how_to_use/code_review/policy"},{"group":"Advanced Configs","pages":[{"title":"General","href":"/en/how_to_use/code_review/configs/general"},{"title":"What to review","href":"/en/how_to_use/code_review/configs/what_to_review"},{"title":"Review every repository","href":"/en/how_to_use/code_review/configs/review_all_repositories"},{"title":"Auto-approve","tag":"beta","href":"/en/how_to_use/code_review/configs/auto_approve"},{"title":"Risk assessment","tag":"beta","href":"/en/how_to_use/code_review/configs/risk"},{"title":"Routing","href":"/en/how_to_use/code_review/configs/routing"},{"title":"Centralized Config","href":"/en/how_to_use/code_review/configs/centralized_config"},{"title":"Config Inheritance \u0026 Overrides","href":"/en/how_to_use/code_review/configs/inheritance_overrides"},{"title":"Directory-Level Settings","href":"/en/how_to_use/code_review/configs/directory_level"},{"title":"Severity Threshold","href":"/en/how_to_use/code_review/configs/suggestion_control"},{"title":"PR Summarization","href":"/en/how_to_use/code_review/configs/pr_summary"},{"title":"Custom Messages","href":"/en/how_to_use/code_review/configs/custom_messages"},{"title":"Instructions \u0026 Personality","href":"/en/how_to_use/code_review/configs/custom_prompts"},{"title":"Linked Repositories","href":"/en/how_to_use/code_review/configs/linked_repositories"}]},{"group":"Kody Rules","pages":[{"title":"Overview","href":"/en/how_to_use/code_review/configs/kody_rules"},{"title":"Rules Library","description":"Browse ready-made Kody Rules and rule packs, and add them to Global, a repository or a directory.","href":"/en/how_to_use/code_review/configs/rules_library"},{"title":"Rule Inheritance","href":"/en/how_to_use/code_review/configs/rules_inheritance"},{"title":"Coding-Agent Instructions","description":"Let Kody read the instructions your team writes for coding agents (CLAUDE.md, AGENTS.md, .cursor/rules, Copilot instructions) and point out changes that break them, without turning them into Kody Rules.","href":"/en/how_to_use/code_review/configs/rules_file_detection"},{"title":"Repository Rules","href":"/en/how_to_use/code_review/configs/repository_rules"},{"title":"Global Rule Sources","href":"/en/how_to_use/code_review/configs/global_rule_sources"},{"title":"Automatic Rules Generation","href":"/en/how_to_use/code_review/learning/kody_rules_generation"}]},{"group":"Custom Agents","tag":"beta","pages":[{"title":"Overview","tag":"beta","href":"/en/how_to_use/code_review/custom_agents"},{"title":"Skills, Docs and Tools","href":"/en/how_to_use/code_review/custom_agents_knowledge_and_tools"},{"title":"Best Practices","href":"/en/how_to_use/code_review/custom_agents_best_practices"}]},{"title":"Plugins","tag":"beta","href":"/en/how_to_use/code_review/plugins"},{"title":"Business Logic Validation","href":"/en/how_to_use/code_review/business_logic_validation"},{"title":"Feedback on suggestions","href":"/en/how_to_use/code_review/learning/kody_learning"}]},{"group":"CLI","tag":"beta","pages":[{"title":"Kodus CLI","href":"/en/how_to_use/cli/introduction"},{"title":"Getting Started","href":"/en/how_to_use/cli/getting_started"},{"title":"Concepts","href":"/en/how_to_use/cli/concepts"},{"title":"Command Reference","href":"/en/how_to_use/cli/commands"},{"title":"AI Agents","href":"/en/how_to_use/cli/ai_agents"},{"title":"Kodus Trace","href":"/en/how_to_use/cli/trace"},{"title":"Self-Hosted Setup","href":"/en/how_to_use/cli/self_hosted"},{"title":"Troubleshooting","href":"/en/how_to_use/cli/troubleshooting"}]},{"group":"Reviews","pages":[{"title":"Pull requests","href":"/en/how_to_use/reviews/pull_requests"},{"title":"CLI reviews","href":"/en/how_to_use/reviews/cli_reviews"}]},{"group":"Cockpit","pages":[{"title":"Overview","href":"/en/how_to_use/cockpit/overview"},{"title":"Cockpit Configuration","href":"/en/how_to_use/cockpit/configuration"},{"title":"Kodus Review","href":"/en/how_to_use/cockpit/kodus_review"},{"title":"Suggestions","href":"/en/how_to_use/cockpit/suggestions"},{"title":"Code hotspots","tag":"beta","href":"/en/how_to_use/cockpit/code_hotspots"},{"title":"Kody Issues","href":"/en/how_to_use/issues/overview"},{"group":"Metrics","pages":[{"title":"Deploy Frequency","href":"/en/how_to_use/cockpit/metrics/deploy_frequency"},{"title":"PR Cycle Time","href":"/en/how_to_use/cockpit/metrics/lead_time_for_changes"},{"title":"Bug Ratio","href":"/en/how_to_use/cockpit/metrics/change_failure_rate"},{"title":"PR Size","href":"/en/how_to_use/cockpit/metrics/pr_size"},{"title":"Kody Suggestions","href":"/en/how_to_use/cockpit/metrics/kody_suggestions"},{"title":"Lead Time Breakdown","href":"/en/how_to_use/cockpit/metrics/lead_time_breakdown"},{"title":"Developer Activity","href":"/en/how_to_use/cockpit/metrics/developer_activity"},{"title":"PRs by Developer","href":"/en/how_to_use/cockpit/metrics/prs_by_developer"},{"title":"PRs Opened vs Closed","href":"/en/how_to_use/cockpit/metrics/prs_opened_vs_closed"}]}]},{"group":"Organization","pages":[{"title":"Workspace Roles","href":"/en/how_to_use/workspace_roles"},{"title":"Auto License Assignment","href":"/en/how_to_use/auto_license_assignment"},{"title":"Single Sign-On","href":"/en/how_to_use/security/sso"},{"title":"Organization Settings","href":"/en/how_to_use/organization/organization_settings"},{"title":"Notifications","href":"/en/how_to_use/organization/notifications"},{"title":"Token usage","href":"/en/how_to_use/organization/token_usage"},{"title":"Activity logs","href":"/en/how_to_use/organization/activity_logs"}]},{"group":"Security","pages":[{"group":"Tokens","pages":[{"title":"Github FGPAT Token","href":"/en/how_to_use/code_review/general_config/github_pat"},{"title":"GitLab PAT Token","href":"/en/how_to_use/code_review/general_config/gitlab_pat"},{"title":"Bitbucket API Token","href":"/en/how_to_use/code_review/general_config/bitbucket_pat"},{"title":"Azure DevOps PAT Token","href":"/en/how_to_use/code_review/general_config/azure_devops_pat"},{"title":"Forgejo Access Token","href":"/en/how_to_use/code_review/general_config/forgejo_pat"}]},{"title":"AI Model Security","href":"/en/how_to_use/security/data_usage"}]},{"group":"Troubleshooting","pages":[{"title":"Troubleshooting","href":"/en/how_to_use/code_review/troubleshooting"}]}]},{"tab":"How to deploy","icon":"rocket-launch","pages":[{"title":"How to deploy","href":"/en/how_to_deploy/kodus_architecture"}]},{"tab":"Knowledge Base","icon":"book-open","pages":[{"title":"Knowledge Base","href":"/en/knowledge_base/introduction"}]},{"tab":"Cookbook","icon":"fire","pages":[{"title":"Cookbook","href":"/en/cookbook/custom-plugin-install"}]},{"tab":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/how_to_use/code_review/configs/rules_inheritance"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/how_to_use/code_review/configs/rules_inheritance"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/how_to_use/code_review/configs/rules_inheritance"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/how_to_use/code_review/configs/rules_inheritance"}]}]},"basePath":"","title":"Rule Inheritance - Kodus","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}