Learning center

How do I exclude generated files from AI code review?

Exclude the generated output directory and keep the input schema and generator under review. First check a real diff to see whether the reviewer already skips the generated files.

Review the input that changes the output#

A schema edit might change one field in an API definition and rewrite hundreds of lines in the generated client. In CodeRabbit, a V2 review path filter such as !sdk/generated/** excludes files below that directory. A positive include pattern also narrows which other files qualify, so adding the schema as an explicit include could accidentally leave out the generator.

Try a change touching the schema, the generated client, and a handwritten client wrapper. The wrapper and schema should still receive review. A regeneration check in CI can separately rebuild the client and compare it with the committed output. Choose which files CodeRabbit reviews

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading