# gspot/generated-files

> Compares generated files with the settings and reports changed, missing, and stray ones, and any with merge conflict markers.

Compares generated files with the settings and reports changed, missing, and stray ones, and any with merge conflict markers.

Part of the [`gspot`](/reference/configurations/gspot/) configuration, at the `recommended` [level](/start/concepts/#levels). It runs at the `commit` [stage](/start/concepts/#stage), once for the repository. gspot runs this check itself.

## Why

A generated file that drifts from gspot.toml runs a tool with settings nobody chose.

## What to do

Change gspot.toml, then run `gspot apply`. After a merge, run `gspot apply`, followed by `gspot install`.

## Example

An edit by hand to a generated tool file reports drift. Move the change into gspot.toml, then run `gspot apply`.

## Turn it off

Turn it off for some files, with a reason:

```shell
gspot ignore gspot/generated-files --paths "<glob>" --reason "<why>"
```
