Questions tagged [sonarqube-4.5]

This is the SonarQube 4.5.x specific tag. Use it in addition to the sonarqube tag if your question is specific to SonarQube 4.5.x — not just 4.x.

SonarQube (formerly Sonar) is a quality management platform focusing on continuous analysis of source code quality.

Information

This tag is specific for the 4.5 version of SonarQube, which was released on the 29th September 2014. See the tag for general SonarQube 4.x questions.

169 questions
22
votes
2 answers

Duplicated block of Code in Sonar for import statements in Java

In Sonar 4.5.6 (with default settings) I am seeing Duplicated Blocks message as My java code for which I am getting the message is like below:- package com.jabong.orchestratorservice.adapter.order.endpoints; import…
tuk
  • 5,941
  • 14
  • 79
  • 162
16
votes
1 answer

Sonarqube 4.5.4 : MySQL deadlock

I am using sonarqube 4.5.4 with mysql database. I got this exception when running analysis on my projects : INFO o.d.m.sonar.runner.RunSonarVisitor - ### Error updating database. Cause:…
Master Mind
  • 3,014
  • 4
  • 32
  • 63
12
votes
7 answers

Not able to start Sonar Server

I am using Sonar to generate code review reports of my project. But I am not able to start the server. I am getting HeapDumpOnOutOfMemoryError while running StartSonar.bat file. Please find the logs generated while sonar start up.…
Gunjan Shah
  • 5,088
  • 16
  • 53
  • 72
10
votes
1 answer

SonarQube - Combining Sonar way, FindBugs, PMD and Checkstyle without duplicates

I'm looking for best practices using SonarQube with the FindBugs, PMD and Checkstyle plugins. How do the rules in SonarQube's default quality profile "Sonar way" relate to those of the plugins? Are they completely different rules or does the Sonar…
schnatterer
  • 7,525
  • 7
  • 61
  • 80
9
votes
2 answers

How to get list of fixed issues during a sonar scan

After every sonar scan we can see the list of newly added issues in both portal and Scan logs like shown below. Iam able to get the list of newly added issues using the Rest API http://localhost:9000/api/issues/search?createdAfter=2015-08-15 Here we…
Nayeem
  • 681
  • 15
  • 35
7
votes
1 answer

Read timed out on /batch/project (SonarQube 4.5)

I am struggling with the following problem. Log of the executed when sonar-runner in Jenkins. SonarQube Runner 2.4 Java 1.7.0_67 Oracle Corporation (64-bit) Windows 7 6.1 amd64 SONAR_RUNNER_OPTS=-Xms256m -Xmx512m INFO: Runner configuration file:…
Jongbum Lee
  • 145
  • 2
  • 8
6
votes
0 answers

SonarQube - Too many duplications references on file ... what is a compliant solution? or a useful configuration to find the real duplicates?

I'm trying to analyse a huge java project (over 1 million lines of code) with SonarQube (version has to be 4.5.6 since the rule set is given, we're not allowed to change it and some rules and plugins don't work with 5.x) and stumbling over useless…
outofmind
  • 1,430
  • 1
  • 20
  • 37
6
votes
3 answers

SonarQube 4.5.4 with Java plugin 3.5 doesn't recognize special Lombok annotations

I have recently updated SonarQube to version 4.5.4 and the Java plugin to version 3.5. We have classes annotated with @Data, but it seems that the rule squid:S1068 doesn't handle this "special" annotations. Altough they should be ignored since…
agassner
  • 689
  • 8
  • 25
5
votes
2 answers

Sonnar runner error: 'sonar-runner' is not recognized as an internal or external command, operable program or batch file

I have just installed sonnar runner on windows 7 using guidelines from sonarqube.com I have installed sonnarqube4.5 and sonar-runner on C drive but my project is in xampp/htdocs in D drive. Now when I am trying to start sonnar runner using command…
Swati
  • 61
  • 1
  • 1
  • 6
5
votes
3 answers

Providing JDK version in maven goals and options

I am using sonar 4.5.1 and it is compatible with JDK 1.7 and above .For the projects which are on JDK1.6 in Jenkins , I want to perform sonar analysis using JDK1.7. To achieve this under Jenkins , in maven goals and options , I am using…
Kaushambi Suyal
  • 213
  • 4
  • 17
5
votes
4 answers

Why does squid:S1166 not accept exception messages only when logging caught exceptions?

Quote from the description of the rule (SonarQube 4.5.5): // Noncompliant - exception is lost (only message is preserved) try { /* ... */ } catch (Exception e) { LOGGER.info(e.getMessage()); } By providing the exception class to the logger a…
Alix
  • 2,630
  • 30
  • 72
4
votes
0 answers

SonarQube 4.5.4 "This block was duplicated by a resource that has been deleted"

When browsing my SonarQube Issues I found a Duplicate Block which was marked "This block was duplicated by a resource that has been deleted". Why is this Block still marked as duplicated when the duplicate resource has been deleted (I even can't…
Christoph Forster
  • 1,728
  • 4
  • 27
  • 39
4
votes
1 answer

SonarQube.Runner not compatible with C# plugin

I am trying to get the following Sonar C# plugin following the instructions here: http://docs.sonarqube.org/display/PLUG/C%23+Plugin The C# plugin installed on the server is not compatible with the MSBuild.SonarQu be.Runner.exe - either check the…
Yogi Valani
  • 461
  • 3
  • 11
4
votes
1 answer

SonarQube Lombok Getter recognition

I am using SonarQube 4.5.4 with Java plugin 3.1. As I know this sonar-java version supports Lombok partially (Getter and Setter annotations) starting from 2.8. But in my case it still reports field with lombok.Getter as: squid:S1068 Unused private…
Librael
  • 43
  • 1
  • 4
3
votes
5 answers

Sonar qube not showing results for Android Lint

This is my build.gradle, apply plugin: 'org.sonarqube' sonarqube { properties { property "sonar.host.url", "http://10.52.211.255:9000/sonar" property "sonar.sources", "src/main/java" property "sonar.language",…
1
2 3
11 12