sonarqube-5.0

Sonar complaining about logging and rethrowing the exception

浪尽此生 提交于 2020-06-17 09:31:11
问题 I have the following piece of code in my program and I am running SonarQube 5 for code quality check on it after integrating it with Maven. However, Sonar is complaining that I should Either log or rethrow this exception . What am I missing here? Am I not already logging the exception? private boolean authenticate(User user) { boolean validUser = false; int validUserCount = 0; try { DataSource dataSource = (DataSource) getServletContext().getAttribute("dataSource"); validUserCount = new

NPE when running Sonar Runner

。_饼干妹妹 提交于 2020-02-04 09:33:30
问题 When running Sonar Runner 2.4 against SonarQube 5.1 RC2 I get this error: ERROR: Error during Sonar runner execution org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91) at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75) at java.security.AccessController.doPrivileged(Native Method) at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) at org.sonar.runner.impl

How to find 'active' snapshots that cause sonarqube upgrade to 5.0 to fail?

Deadly 提交于 2020-01-16 18:34:15
问题 I’m getting the same error as Julien Lancelot answered re: Failed to upgrade SonarQube from 4.5 to 5.0.1 ie 2015.02.18 14:56:26 INFO web[DbMigration] == PopulateProjectsUuidColumns: migrating ==================================== 2015.02.18 14:56:43 ERROR web[o.s.s.d.m.DatabaseMigrator] Fail to execute database migration: org.sonar.server.db.migrations.v50.PopulateProjectsUuidColum nsMigration org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang

importing javascript xml junit tests to SONAR using jstestdriver fails

北城余情 提交于 2020-01-12 13:51:54
问题 What I am doing? I am currently working on setting up Continuous integration / delivery pipeline for front end applications. We are planning to use SonarQube as code quality tool and want to import junit test results/code coverage in SONAR for further analysis. I was able to successfully import javascript code coverage report to SONAR. We are using Gulp / Karma / PhantomJS / Jasmine etc and using Karma coverage / Junit reporters to generate test results. Junit test file name is TEST-xunit.xml

How to rename a project in SonarQube 5.1?

心已入冬 提交于 2019-12-30 05:46:09
问题 I can't find how to rename a project in SonarQube 5.1. Once created, how one can change project name, key, branch, from the web dashboard? SonarQube's documentation doesn't help. 回答1: You need to "update the project key" (I always think that the Sonar terminology here isn't very helpful) https://docs.sonarqube.org/display/SONAR/Project+Settings#ProjectSettings-UpdatingProjectKey and then re-run the analysis (with the new project key, so having updated your sonar-project.properties or build

How to change data folder in sonarqube?

喜欢而已 提交于 2019-12-24 16:22:31
问题 How to change data folder in sonarqube? I need to change the installation data folder to other location, is it possible? Who is the responsible of write & change this folder? Is the wrapper? I can change de location of h2 database but not the data folder location. I use Sonarqube 5.0 回答1: See in your sonar.properties : # Paths to persistent data files (embedded database and search index) and temporary files. # Can be absolute or relative to installation directory. # Defaults are respectively

SonarQube for Drupal Projects

北城以北 提交于 2019-12-22 00:28:36
问题 Currently i am using SonarQube with latest version 5.0 . I am using SonarQube for scanning PHP projects with PHP plugin. Now there some queries which i having regarding SonarQube and PHP Plugin. Why SonarQube guys deprecated the old PHP Plugin which is more configurable than the Previous one. Is it possible to Analyze Drupal Projects with SonarQube. Thanks in advance for the answers. 回答1: After doing so much research for SonarQube Coding Standards i came to following conclusion. please find

Error in SonarQube when launching svn blame

与世无争的帅哥 提交于 2019-12-17 18:40:04
问题 I recently upgraded my SonarQube server from 4.5.2 to 5.0.1, then to 5.1 (see edit below). Suddenly, the analysis of a multi-module Maven project failed with the following error : [INFO] [12:02:05.045] Sensor SCM Sensor... [INFO] [12:02:05.169] SCM provider for this project is: svn [INFO] [12:02:05.169] Retrieve SCM blame information... [INFO] [12:02:05.185] 650 files to be analyzed [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO]

Setup to detect duplicate C# code

浪尽此生 提交于 2019-12-14 04:21:28
问题 I fail to detect duplicate code in sonarq I've Sonarqube 5.1 up and running and following plugins installed: C# [csharp] 4.0 Issue Assign [issueassign] 1.6 Issues Density [issuesdensity] 1.0 Java [java] 3.0 JavaScript [javascript] 2.5 German Pack [l10nde] 1.1 Motion Chart [motionchart] 1.7 Python [python] 1.5 Redmine [redmine] 0.2 ReSharper [resharper] 1.0 Git [scmgit] 1.0 Mercurial [scmmercurial] 1.1 Scm Stats [scmstats] 0.3.1 SVN [scmsvn] 1.0 TFS [scmtfs] 1.0 StyleCop [stylecop] 1.1

max_allowed_packet, I don't have MySQL

倖福魔咒の 提交于 2019-12-13 08:18:53
问题 I'm trying to run sonar-runner.bat, when it almost finished analyzing, it's written max_allowed_packet more than something something. So it fails. Through deep search, everyone said that i should configer my.ini file inside MySQL folder. But, I don't have MySQL Installed. Log: Error: unable to execute sonar error: caused by: unable to save file sources error: caused by: Error updating database. cause: com.mysql.jdbc.packettoobigexception: packet for query is too large (3215747 >1048576). you