3scale/porta

View on GitHub
app/lib/finance/api/collection.rb

Summary

Maintainability
A
0 mins
Test Coverage

Finance::Api::Collection#to_xml has unused parameter 'options'
Open

      def to_xml(options = {})
Severity: Minor
Found in app/lib/finance/api/collection.rb by reek

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:

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)

There are no issues that match your filters.

Category
Status