lib/reek/smells/irresponsible_module.rb
#
# Checks the given class or module for a descriptive comment.
#
# @return [Array<SmellWarning>]
#
Checks the given class or module for a descriptive comment.
Checks the given class or module for a descriptive comment .
def examine_context(ctx)
        comment = Source::CodeComment.new(ctx.exp.comments)
        return [] if self.class.descriptive[ctx.full_name] ||= comment.descriptive?
        [SmellWarning.new(self,
                          context: ctx.full_name,
                          lines: [ctx.exp.line],
                          message: 'has no descriptive comment',
                          parameters: {  MODULE_NAME_KEY => ctx.exp.text_name })]
      end
def examine_context ( ctx ) comment = Source :: CodeComment . new ( ctx . exp . comments ) return [ ] if self . class . descriptive [ ctx . full_name ] ||= comment . descriptive? [ SmellWarning . new ( self , context : ctx . full_name , lines : [ ctx . exp . line ] , message : 'has no descriptive comment' , parameters : { MODULE_NAME_KEY => ctx . exp . text_name } ) ] end
Checks the given class or module for a descriptive comment.
Checks the given class or module for a descriptive comment .
None
Array<SmellWarning>
ctx
<not_specific>