# bash/safety

> Finds broad process kills and recursive deletes, except traps that remove mktemp paths. At level all, also reports discarded failures.

Finds broad process kills and recursive deletes, except traps that remove mktemp paths. At level all, also reports discarded failures.

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

## Why

Each of these lets a script silently destroy something by mistake.

## What to do

Handle the failure. For required cleanup, use `gspot ignore bash/safety` with `--rule`, `--paths`, and `--reason`.

## Example

`killall worker` reports `broad-kill`. Stop the one process by its ID, or ignore the rule for that script with a reason.

## Turn it off

Turn it off for some files, with a reason:

```shell
gspot ignore bash/safety --paths "<glob>" --reason "<why>"
```
