class RuboCop::CommentConfig
def directive_parts(comment)
def directive_parts(comment) match = comment.text.match(COMMENT_DIRECTIVE_REGEXP) return unless match switch, cops_string = match.captures cop_names = cops_string == 'all' ? all_cop_names : cops_string.split(/,\s*/) disabled = (switch == 'disable') [cop_names, disabled] end