function report(queryResult, cfg) {
  if (cfg.report && !queryResult.meta.analyzerMeta.__fromCache) {
    const { identifier } = queryResult.meta.analyzerMeta;
    ReportService.writeToJson(queryResult, identifier, cfg.outputPath);
  }
}
@param {AnalyzerQueryResult} queryResult
@param {{outputPath:PathFromSystemRoot;report:boolean}} cfg