Sha256: 2fe61954706f298257f9819cd828758091527018cca67a395efb534bb2b5e82f

Contents?: true

Size: 600 Bytes

Versions: 15

Compression:

Stored size: 600 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

15 entries across 15 versions & 1 rubygems

Version Path
reek-3.5.0 docs/Unused-Parameters.md
reek-3.4.1 docs/Unused-Parameters.md
reek-3.4.0 docs/Unused-Parameters.md
reek-3.3.1 docs/Unused-Parameters.md
reek-3.3.0 docs/Unused-Parameters.md
reek-3.2.1 docs/Unused-Parameters.md
reek-3.2 docs/Unused-Parameters.md
reek-3.1 docs/Unused-Parameters.md
reek-3.0.4 docs/Unused-Parameters.md
reek-3.0.3 docs/Unused-Parameters.md
reek-3.0.2 docs/Unused-Parameters.md
reek-3.0.1 docs/Unused-Parameters.md
reek-3.0.0 docs/Unused-Parameters.md
reek-2.2.1 docs/Unused-Parameters.md
reek-2.2.0 docs/Unused-Parameters.md