public bool RunAnalysisWithPMD(string codeDirectoryPath, string outReportFilePath) { IStaticCodeAnalysisTool tool = _pMDTool; StaticCodeAnalysisController controller = new StaticCodeAnalysisController(); File.Delete(outReportFilePath); string tempReportPath = controller.AnalyseUsingTool(tool, codeDirectoryPath); return(controller.Merge(_toolToParserMap[tool], tempReportPath, outReportFilePath)); }
public string AnalyseUsingTool(IStaticCodeAnalysisTool tool, string codeDirectoryPath) { return(tool.Analyse(codeDirectoryPath)); }