---
title: "duplicated-imports"
description: "Reject importing the same package more than once."
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.

# duplicated-imports

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

**Default severity:** `error`

Reject importing the same package more than once.

## Bad

```go
import (
	"strings"
	text "strings"
)
```

## Good

```go
import "strings"
```

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