Sha256: 6977624c49c284aba5e48372e32c86e114de9336ac289474ae1c832853e598d0

Contents?: true

Size: 599 Bytes

Versions: 17

Compression:

Stored size: 599 Bytes

Contents

## Introduction

`Unused Parameter` refers to methods with parameters that are unused in scope of the method.

Having unused parameters in a method is code smell because leaving dead code in a method can never improve the method and it makes the code confusing to read. 

## Example

Given:

```Ruby
class Klass
  def unused_parameters(x,y,z)
    puts x,y # but not z
  end
end
```

Reek would emit the following warning:

```
[2]:Klass#unused_parameters has unused parameter 'z' (UnusedParameters)
```

## Configuration

`Unused Parameter` offers the [Basic Smell Options](Basic-Smell-Options.md).

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
reek-4.0.1 docs/Unused-Parameters.md
reek-4.0.0 docs/Unused-Parameters.md
reek-4.0.0.pre1 docs/Unused-Parameters.md
reek-3.11 docs/Unused-Parameters.md
reek-3.10.2 docs/Unused-Parameters.md
reek-3.10.1 docs/Unused-Parameters.md
reek-3.10.0 docs/Unused-Parameters.md
reek-3.9.1 docs/Unused-Parameters.md
reek-3.9.0 docs/Unused-Parameters.md
reek-3.8.3 docs/Unused-Parameters.md
reek-3.8.2 docs/Unused-Parameters.md
reek-3.8.1 docs/Unused-Parameters.md
reek-3.8.0 docs/Unused-Parameters.md
reek-3.7.1 docs/Unused-Parameters.md
reek-3.7.0 docs/Unused-Parameters.md
reek-3.6.1 docs/Unused-Parameters.md
reek-3.6.0 docs/Unused-Parameters.md