lib/reek/smells/class_variable.rb
#
# Checks whether the given class or module declares any class variables.
#
# @return [Array<SmellWarning>]
#
Checks whether the given class or module declares any class variables.
Checks whether the given class or module declares any class variables .
def examine_context(ctx)
        class_variables_in(ctx.exp).map do |variable, lines|
          SmellWarning.new self,
                           context: ctx.full_name,
                           lines: lines,
                           message: "declares the class variable #{variable}",
                           parameters: { VARIABLE_KEY => variable.to_s }
        end
      end
def examine_context ( ctx ) class_variables_in ( ctx . exp ) . map do | variable , lines | SmellWarning . new self , context : ctx . full_name , lines : lines , message : "declares the class variable #{variable}" , parameters : { VARIABLE_KEY => variable . to_s } end end
Checks whether the given class or module declares any class variables.
Checks whether the given class or module declares any class variables .
None
Array<SmellWarning>
ctx
<not_specific>