# How to add a configuration file for Code Health

Using a YAML File to Configure Typo

You can add a configuration file named `".typoapp.yaml"` or `".typoapp.yml"`  to the root of your repository to customize how Typo works. This file is a simple way to define settings for your projects directly in your code.

The `".typoapp.yaml"` or `".typoapp.yml"` file must be present in your base/target branch for Typo to apply the configuration to its analysis and reports

## TypoApp Code Review Configuration File

**What this includes:**

* **Language setting**
  * English
  * Portuguese

For additional language support, please contact <hello@typoapp.io>

* **Path filtering**
  * **Include:** Specify paths to include in the review.
  * **Exclude:** Specify paths to exclude from the review.
* **Custom Instruction** -
  * Enter any specific instructions related to the review (up to 200 characters).

Example file -&#x20;

```yaml
# TypoApp Code Review Configuration File
language: "english"

# Custom instructions for the code review.  
# Default: ""  
# Max length: 200 characters  
custom_instructions: "Summaries must be concise and highlight only critical and major issues. Ignore minor or cosmetic problems."

reviews:
  path_filters:
    # Include these paths
     - "src/**"

    # Exclude these paths (prefix with !)
    - "!*/constants.py"
    - "!*/test.py"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://typo.gitbook.io/typo-help-docs/faqs/metrics/how-to-add-a-configuration-file-for-code-health.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
