Skip to main content
When you have multiple repositories, keeping coding standards consistent is a challenge. Kodus lets you define rules once and apply them everywhere.

Global rules

Create rules at Global scope and they apply to every repository:
  1. Pick Global in the scope picker at the top of the Code review group in the sidebar, then open Kody Rules
  2. Create your rules with New rule, or add them from the Rules Library
  3. Repositories and directories inherit them

Rule inheritance

Rules flow down from Global → repository → directory:
  • Global rules apply to every repository
  • Repository rules add to the Global ones for that repository
  • Directory rules add to them for pull requests reviewed with that directory’s settings
A repository can mark an inherited rule as disabled in its list, and a rule can be marked non-inheritable. Both change how the rule is listed; a review still applies every Global and repository rule. See Rule Inheritance.

Keep standards in one repository

If your standards live in a dedicated repository, Global Rule Sources imports its rule files as global rules and updates them when a pull request is merged there. It is not available on the Free plan. Rules in each project’s own .kody/rules folder (see Repository Rules) apply only to that project. To manage review settings and rules for the whole organization from one repository, use Centralized Config.

Memories across the organization

Memories scoped to the organization apply across all repositories. Create one with New memory at Global scope, or ask Kody in a PR comment:
For details, see Rules Inheritance.