---
title: "Separate review rules that share a key | Proofline Help"
description: "A duplicate rule key prevents the file from validating, even when the two entries specify different paths."
url: https://proofline.sh/help/yaml-fix-duplicate-rule-key/
---

[Help center](/help/)

# Separate review rules that share a key

A duplicate rule key prevents the file from validating, even when the two entries specify different paths.

## Give each instruction a distinct key

Find both entries using the key reported by the validator. If the instructions describe different checks, give each a distinct key and preserve its own text.

```
version: 2
rules:
  - key: invoice-backfill
    path_globs: ["db/migrations/**"]
    text: Check that the invoice backfill can resume.
  - key: invoice-retry
    path_globs: ["workers/invoice/**"]
    text: Check that a retry cannot issue a second invoice.
```

If the entries express the same check, keep one key and combine the applicable paths in its path list. Keys start with a lowercase letter and contain 3–64 lowercase letters, digits or hyphens.

## Related guides

-   [Review repository configuration](/help/repository-configuration/)
