---
title: "blank-imports"
description: "Require explanatory comments on blank imports outside main and test files."
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.

# blank-imports

<!-- Code generated by docs/scripts/generate-check-docs.go; DO NOT EDIT. -->

**Default severity:** `warning`

Require explanatory comments on blank imports outside main and test files. Default: main and test packages exempt.

## Bad

```go
import _ "example.com/driver"
```

## Good

```go
import _ "example.com/driver" // register the driver
```

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