Class: Inch::Language::Elixir::Evaluation::Role::FunctionParameter::WithWrongMention

Inherits:
Base
  • Object
show all
Defined in:
lib/inch/language/elixir/roles/function_parameter.rb

Overview

Role assigned to parameters that are documented, but not part of the method signature

See Also:

  • CodeObject::Ruby::MethodParameterObject#wrongly_mentioned?

Instance Attribute Summary

Attributes inherited from Evaluation::Role

#object

Instance Method Summary collapse

Methods inherited from Base

#object_type

Methods inherited from Evaluation::Role

applicable?, applicable_if, applicable_unless, #initialize, #max_score, #min_score, #object_type, #potential_score, priority, #priority, #score

Constructor Details

This class inherits a constructor from Inch::Evaluation::Role

Instance Method Details

#suggestionObject


71
72
73
74
# File 'lib/inch/language/elixir/roles/function_parameter.rb', line 71

def suggestion
  "The parameter '#{object.name}' seems not to be part of the " \
    'signature.'
end