class RuboCop::CommentConfig
def analyze_disabled(analysis, directive)
def analyze_disabled(analysis, directive) line = directive.line_number start_line = analysis.start_line_number # Cop already disabled on this line, so we end the current disabled # range before we start a new range. return CopAnalysis.new(analysis.line_ranges + [start_line..line], line) if start_line CopAnalysis.new(analysis.line_ranges, line) end