ui/data/RD dynamic ruby/model/src/reek/smell_detectors/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 sniff(ctx)
        class_variables_in(ctx.exp).map do |variable, lines|
          smell_warning(
            context: ctx,
            lines: lines,
            message: "declares the class variable '#{variable}'",
            parameters: { name: variable.to_s })
        end
      end
def sniff ( ctx ) class_variables_in ( ctx . exp ) . map do | variable , lines | smell_warning ( context : ctx , lines : lines , message : "declares the class variable '#{variable}'" , parameters : { name : 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