Types of Custom Context
There are three types of custom context:Custom Rules
You can define rules such as “use loops instead of list comprehension”, and Greptile will enforce this rule across your PRs. Examples:Style Guides & Docs
You can point Greptile to your existing style guides and docs, and Greptile will use those as context when reviewing your PRs.Other Context
There is also free-form space for you to explain any idiosyncracies with your team or codebase to personalize Greptile. Here is an example:Scopes
Each type of context, rules, guides, and “other”, can be scoped to apply to specific repos and specific file patterns. For example, I might want to enforce use ofprop types but only in acme/web_app and only in files matching the pattern src/frontend/*.tsx.
If you don’t explicitly define a scope, Greptile will intelligently determine when the rule/stylegude etc. should be applied.