lib/rubocop/directive_comment.rb
# Return all the cops specified in the directive
Return all the cops specified in the directive
Return all the cops specified in the directive
def cops
      match = comment.text.match(CommentConfig::COMMENT_DIRECTIVE_REGEXP)
      return unless match
      cops_string = match.captures[1]
      cops_string.split(/,\s*/).uniq.sort
    end
def cops match = comment . text . match ( CommentConfig :: COMMENT_DIRECTIVE_REGEXP ) return unless match cops_string = match . captures [ 1 ] cops_string . split ( / , \s * / ) . uniq . sort end
Return all the cops specified in the directive
Return all the cops specified in the directive