|  |  |  | @ -63,7 +63,9 @@ public class SonarService { | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.java.binaries=./ " + | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.projectBaseDir=" + param.getProjectPath(); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             SystemUtil.executeAndGetExitStatus(command); | 
			
		
	
		
			
				
					|  |  |  |  |             SystemUtil.ExecuteResp executeResp = SystemUtil.executeAndGetExitStatus(command); | 
			
		
	
		
			
				
					|  |  |  |  |             log.info("java语言:command{},result:{}",command,executeResp.getOutput()); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |         concurrentHashMap.put(Constant.PYTHON, param -> { | 
			
		
	
		
			
				
					|  |  |  |  |             String command = "sonar-scanner " + | 
			
		
	
	
		
			
				
					|  |  |  | @ -72,7 +74,8 @@ public class SonarService { | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.projectKey=" + param.getProjectKey() + " " + | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.projectBaseDir=" + param.getProjectPath(); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             SystemUtil.executeAndGetExitStatus(command); | 
			
		
	
		
			
				
					|  |  |  |  |             SystemUtil.ExecuteResp executeResp = SystemUtil.executeAndGetExitStatus(command); | 
			
		
	
		
			
				
					|  |  |  |  |             log.info("python语言:command{},result:{}",command,executeResp.getOutput()); | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |         concurrentHashMap.put(Constant.C, param -> { | 
			
		
	
		
			
				
					|  |  |  |  |             String command = "cppcheck --xml --xml-version=2 --enable=all " + param.getProjectPath() + " 2> " + param.getCppCheckReportPath() + | 
			
		
	
	
		
			
				
					|  |  |  | @ -82,7 +85,8 @@ public class SonarService { | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.projectKey=" + param.getProjectKey() + " " + | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.cxx.cppcheck.reportPath=" + param.getCppCheckReportPath() + " " + | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.projectBaseDir=" + param.getProjectPath(); | 
			
		
	
		
			
				
					|  |  |  |  |             SystemUtil.executeAndGetExitStatus(command); | 
			
		
	
		
			
				
					|  |  |  |  |             SystemUtil.ExecuteResp executeResp = SystemUtil.executeAndGetExitStatus(command); | 
			
		
	
		
			
				
					|  |  |  |  |             log.info("c语言:command{},result:{}",command,executeResp.getOutput()); | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |         concurrentHashMap.put(Constant.CXX, param -> { | 
			
		
	
		
			
				
					|  |  |  |  |             String command = "cppcheck --xml --xml-version=2 --enable=all " + param.getProjectPath() + " 2> " + param.getCppCheckReportPath() + | 
			
		
	
	
		
			
				
					|  |  |  | @ -93,7 +97,7 @@ public class SonarService { | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.cxx.cppcheck.reportPath=" + param.getCppCheckReportPath() + " " + | 
			
		
	
		
			
				
					|  |  |  |  |                     "-Dsonar.projectBaseDir=" + param.getProjectPath(); | 
			
		
	
		
			
				
					|  |  |  |  |             SystemUtil.ExecuteResp executeResp = SystemUtil.executeAndGetExitStatus(command); | 
			
		
	
		
			
				
					|  |  |  |  |             log.info("command:{}, result:{}", command, executeResp.getOutput()); | 
			
		
	
		
			
				
					|  |  |  |  |             log.info("c++: command:{}, result:{}", command, executeResp.getOutput()); | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |