sonarqube

SonarQube: (Catch a list of specific exception subtypes instead)

为君一笑 提交于 2020-12-27 06:40:46
问题 I have a question about generic exceptions. How would we know which non-generic exception to use when you have a try that does multiple things. For example: @PostConstruct protected void init() { try { HttpSession session = request.getSession(); String policyInfo = (String) session.getAttribute("policyInfo"); if(session.getAttribute("faxNumber") != null) { faxNumber = (String) session.getAttribute("faxNumber"); } policyNumber = (String) session.getAttribute("policyNumber"); JSONObject

Project code is not being analyzed for sonarqube

空扰寡人 提交于 2020-12-16 04:48:48
问题 I have a repo in azure DevOps with only folder as test. Now, I have given the task structure in this way in azure DevOps. But I cannot see the code getting analyzed in sonarqube. The code tab shows blank. Could someone help me with where I am going wrong?? I do not want to give folder name in sources..I want whatever code I add in the branch to be analyzed. edit: Just realized this is happening only for feature short lived branch..My sonarqube version is 8.0 steps: task: SonarQubePrepare@4