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