/// <summary> /// Generates a SQALE file with fixed remediation costs for the specified analyzers /// </summary> private void GenerateFixedSqaleFile(IEnumerable <DiagnosticAnalyzer> analyzers, string outputFilePath) { this.logger.LogInfo(UIResources.APG_GeneratingConstantSqaleFile); HardcodedConstantSqaleGenerator generator = new HardcodedConstantSqaleGenerator(); SqaleModel sqale = generator.GenerateSqaleData(analyzers, DefaultRemediationCost); Serializer.SaveModel(sqale, outputFilePath); this.logger.LogDebug(UIResources.APG_SqaleGeneratedToFile, outputFilePath); }
/// <summary> /// Generates a SQALE file with fixed remediation costs for the specified analyzers /// </summary> private void GenerateFixedSqaleFile(IEnumerable<DiagnosticAnalyzer> analyzers, string outputFilePath) { this.logger.LogInfo(UIResources.APG_GeneratingConstantSqaleFile); HardcodedConstantSqaleGenerator generator = new HardcodedConstantSqaleGenerator(); SqaleModel sqale = generator.GenerateSqaleData(analyzers, DefaultRemediationCost); Serializer.SaveModel(sqale, outputFilePath); this.logger.LogDebug(UIResources.APG_SqaleGeneratedToFile, outputFilePath); }