---
layout: default
parent: Checks
grand_parent: Documentation
---

# alerts/for

This check will warn if an alert rule uses invalid `for` or `keep_firing_for`
value or if it passes default value that can be removed to simplify rule.

## Configuration

This check doesn't have any configuration options.

## How to enable it

This check is enabled by default.

## How to disable it

You can disable this check globally by adding this config block:

```js
checks {
  disabled = ["alerts/for"]
}
```

You can also disable it for all rules inside a given file by adding
a comment anywhere in that file. Example:

```yaml
# pint file/disable alerts/for
```

Or you can disable it per rule by adding a comment to it. Example:

```yaml
# pint disable alerts/for
```

## How to snooze it

You can disable this check until a given time by adding a comment to it. Example:

```yaml
# pint snooze $TIMESTAMP alerts/for
```

Where `$TIMESTAMP` is either [RFC3339](https://www.rfc-editor.org/rfc/rfc3339)
formatted or `YYYY-MM-DD`.
Adding this comment will disable `alerts/for` *until* `$TIMESTAMP`, after which
the check will be re-enabled.
