class RuboCop::Cop::Commissioner
def with_cop_error_handling(cop, node = nil)
re-raising exceptions that can be raised from within the individual
Allow blind rescues here, since we're absorbing and packaging or
def with_cop_error_handling(cop, node = nil) yield rescue StandardError => e raise e if @options[:raise_error] err = ErrorWithAnalyzedFileLocation.new(cause: e, node: node, cop: cop) @errors << err end