示例#1
0
        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));
        }
示例#2
0
 public string AnalyseUsingTool(IStaticCodeAnalysisTool tool, string codeDirectoryPath)
 {
     return(tool.Analyse(codeDirectoryPath));
 }