code: protected File getReportFile(String outputLocation, Format format) {
          File outFile = new File(outputLocation);
          if (outFile.getParentFile() == null) {
              outFile = new File(".", outputLocation);
          }
          final String pathToCheck = outputLocation.toLowerCase();
          if (format == Format.XML && !pathToCheck.endsWith(".xml")) {
              return new File(outFile, "dependency-check-report.xml");
          }
          if (format == Format.HTML && !pathToCheck.endsWith(".html") && !pathToCheck.endsWith(".htm")) {
              return new File(outFile, "dependency-check-report.html");
          }
          if (format == Format.JSON && !pathToCheck.endsWith(".json")) {
              return new File(outFile, "dependency-check-report.json");
          }
          if (format == Format.CSV && !pathToCheck.endsWith(".csv")) {
              return new File(outFile, "dependency-check-report.csv");
          }
          if (format == Format.JUNIT && !pathToCheck.endsWith(".xml")) {
              return new File(outFile, "dependency-check-junit.xml");
          }
          return outFile;
      }
docs: Determines the report file name based on the give output location and
  format. If the output location contains a full file name that has the
  correct extension for the given report type then the output location is
  returned. However, if the output location is a directory, this method
  will generate the correct name for the given output format.
  
  @param outputLocation the specified output location
  @param format the report format
  @return the report File