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] # For internal testing err = ErrorWithAnalyzedFileLocation.new(cause: e, node: node, cop: cop) raise err if @options[:raise_cop_error] # From user-input option @errors << err end