---
title: "imports-blocklist"
description: "Reject configured imports."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# imports-blocklist

**Default severity:** `warning`

Reject configured imports.

## Bad

```go
import "log" // when log is configured as blocked
```

## Good

```go
import "log/slog"
```

## Configuration

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `blocked-imports` | `strings` | `[]` | Import paths that this check rejects. |

```toml
[checks.imports-blocklist]
blocked-imports = []
```

Source: https://strider.gempir.com/lints/imports-blocklist/index.mdx
