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