# duplication

> Reports copied code across every language a configuration claims.

Reports copied code across every language a configuration claims.

## Checks

| Check                                                       | Stage  | Level | What it does                                                          |
| ----------------------------------------------------------- | ------ | ----- | --------------------------------------------------------------------- |
| [`duplication/jscpd`](/reference/checks/duplication/jscpd/) | `push` | `all` | Reports every block of code copied between files, naming both places. |

## Settings

| Setting                                                                   | What it sets                                           |
| ------------------------------------------------------------------------- | ------------------------------------------------------ |
| [`duplication.min_lines`](/reference/gspot-toml/#duplication.min_lines)   | The fewest lines a copied block has before it counts.  |
| [`duplication.min_tokens`](/reference/gspot-toml/#duplication.min_tokens) | The fewest tokens a copied block has before it counts. |

## Selected when

Always selected.

## Tools and versions

| Tool  | Version |
| ----- | ------- |
| jscpd | `5.2.0` |

## Files gspot writes

gspot writes `.gspot/configurations/general/duplication/jscpd.json`.
