def print_errors_for_code(code, errors)
      name = fetch_error_messages(code, errors)
      output << "    <testcase classname=\"jshint.#{code}\" name=\"#{escape(name)}\">\n"
      errors.each do |error|
        output << add_error_message(code, error)
      end
      output << "    </testcase>\n"
      output
    end
def print_errors_for_code(code, errors)
      name = fetch_error_messages(code, errors)
      output << "    <testcase classname=\"jshint.#{code}\" name=\"#{escape(name)}\">\n"
      errors.each do |error|
        output << add_error_message(code, error)
      end
      output << "    </testcase>\n"
      output
    end
Appends new error elements to the Report output

 @example
  <testcase classname="JUnitXmlReporter.constructor" name="should default path to an empty string" time="0.006">
    <failure message="test failure">Assertion failed</failure>
 </testcase>

 @param code [String] The error code
 @param errors [Array] The errors for the code
 @return [void]