---
title: "argument-overwritten-before-use"
description: "Detect arguments replaced before their incoming value is used."
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.

# argument-overwritten-before-use

**Default severity:** `warning`

Overwriting a function argument before reading its incoming value makes that
input meaningless. The assignment may be accidental, or the argument may no
longer belong in the function signature.

## Bad

```go
func normalize(value string) string { value = fallback; return value }
```

## Good

```go
func normalize(value string) string { use(value); value = fallback; return value }
```

Source: https://strider.gempir.com/analyzers/argument-overwritten-before-use/index.mdx
