sonarqube

How to address the “Do not override the Object.finalize() method” issue

余生颓废 提交于 2019-12-11 12:49:44
问题 Recently I figure out one tool [SonarQube] who helps me to find out the potential threats into code, I have addressed all issues reported by the tool. But it also gives me a potential threats issue for "protected void finalize()" method which is been override by me, tool displaying me a message "Do not override the Object.finalize() method". Can anybody please help me how to address this issue, the overrided method also include some business logic. 回答1: Never. Never! Never put any business

sonarqube 5.2 MySQLTransactionRollbackException: Deadlock found when trying to get lock

瘦欲@ 提交于 2019-12-11 12:40:51
问题 Using SonarQube 5.2 I’m seeing the following Deadlock issue: 05:48:22 ERROR: Error during Sonar runner execution 05:48:22 java.lang.IllegalStateException: Fail to execute request [code=500, url=http://192.168.109.6/api/ce/submit?projectKey=CoprHD&projectName=CoprHD-controller&projectBranch=bugfix-COP-19001-hotfix]: {"errors":[{"msg":"\n### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting

SonarQube Stopping Unexpectedly on Windows

流过昼夜 提交于 2019-12-11 12:32:14
问题 I'm trying to run SonarQube community edition on my local Windows pc. I launch it via the StartSonar.bat command, but it stops prematurely: C:\dev\sonarqube-7.5\bin\windows-x86-64>StartSonar.bat wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. jvm 1 | jvm 1 | 2019.01.18 23:20:47 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp

sonar.coverage.exclusions and integration tests coverage

南笙酒味 提交于 2019-12-11 12:15:43
问题 I had a maven module that got analyzed for both Unit-tests and Integration-Tests coverage. I specifically added sonar.coverage.exclusions to the maven module that I wanted to exclude from coverage analysis. It worked well with the UT, but the module was still analyzed for IT coverage and I got weird behavior where the overall coverage is smaller than the UT coverage because it looks at more code. I'm using SonarQube 4.5 with java plugin 2.9.1. 来源: https://stackoverflow.com/questions/29239340

Start Sonar server inside eclipse?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 11:54:12
问题 can I start a sonar server inside from eclipse? Or do I always have to execute the startserver.bat? ty 回答1: You have to use the startserver.bat , to start the server. You can have look at this question if you want to call the bat file from eclipse. 来源: https://stackoverflow.com/questions/9542252/start-sonar-server-inside-eclipse

How to Suppress Warnings in Sonar for properties file?

久未见 提交于 2019-12-11 11:52:19
问题 Is it possible to Suppress Warnings in properties file? Warnings are generated by SonarQube Java Properties Plugin. Warning key *jproperties:** is (for example jproperties:key-naming-convention ) I tried to add comment with #@SuppressWarnings("jproperties:key-naming-convention") Before offending line but it does not work. I know I could do one of disable those rules in my quality profile suppress warning in Sonar Web UI I do not want solution 1) because it will ignore rule for all files, not

Sonarqube SonarLint Customisation

*爱你&永不变心* 提交于 2019-12-11 11:43:57
问题 I am interested in customising SonarLint on IntelliJ, I am guessing it's possible via the sonarlint.xml file. <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="SonarLintProjectSettings"> <option name="additionalProperties"> <map> <entry key="squid:S1067.max" value="20" /> <entry key="squid:S2975" value="True" /> </map> </option> </component> </project> Specifically I would like to disable some of the checks and increase the thresholds for others, the attached XML

Sonarqube 5.1 core auto assign feature not working

大兔子大兔子 提交于 2019-12-11 11:43:24
问题 I've heard that issue assign plugin is not needed in sonarqube 5.1 since its built in. But whenever I committed through SVN and run sonar through jenkins all of the team gets an email saying there is an issue but issues are not assigned to the last committer or to anybody. But when I view the code through sonar I can see it displays the committed persons name in-front of it. Therefore I think that the issue is not with SVN connection or user name identificaiton. (We use same usernames to log

SonarQube Msbuild Runner and Jenkins Unauthorized Error

和自甴很熟 提交于 2019-12-11 11:18:01
问题 I am getting the following error when trying to run Sonarqube MSBuild Runner with Jenkins. I am using SonarQube 4.5 and MSBuild SonarQube Runner 1.1. Any suggestions on how to resolve? Unhandled Exception: System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at SonarQube.TeamBuild

Sonar Ant task execution error

放肆的年华 提交于 2019-12-11 10:49:54
问题 I wrote the ant sonar task but when i am executing in the console i am getting following error E:\Liferay\Liferay 6.2\workspace\plugins\build.xml:305: org.sonar.batch.bootstrapper.BootstrapException: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:9000/sonar/batch/ Even i have tried in all the ways The following is my ant target <target name="sonar"> <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"> <!-- Update the following line,