Sha256: 252ad4f5e5552d837552a09ded763324ae7d0e1165ac4d24288376ca51d7edb1

Contents?: true

Size: 597 Bytes

Versions: 53

Compression:

Stored size: 597 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]:UnusedParameters: Klass#unused_parameters has unused parameter 'z'
```

## Configuration

_Unused Parameter_ offers the [Basic Smell Options](Basic-Smell-Options.md).

Version data entries

53 entries across 51 versions & 2 rubygems

Version Path
reek-6.0.3 docs/Unused-Parameters.md
reek-6.0.2 docs/Unused-Parameters.md
reek-6.0.1 docs/Unused-Parameters.md
reek-6.0.0 docs/Unused-Parameters.md
reek-5.6.0 docs/Unused-Parameters.md
reek-5.5.0 docs/Unused-Parameters.md
reek-5.4.1 docs/Unused-Parameters.md
reek-5.4.0 docs/Unused-Parameters.md
reek-5.3.2 docs/Unused-Parameters.md
reek-5.3.1 docs/Unused-Parameters.md
reek-5.3.0 docs/Unused-Parameters.md
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/docs/Unused-Parameters.md
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/docs/Unused-Parameters.md
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/docs/Unused-Parameters.md
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/docs/Unused-Parameters.md
reek-5.2.0 docs/Unused-Parameters.md
reek-5.1.0 docs/Unused-Parameters.md
reek-5.0.2 docs/Unused-Parameters.md
reek-5.0.1 docs/Unused-Parameters.md
reek-5.0.0 docs/Unused-Parameters.md