sonarqube5.1

Found 'UR'-anomaly for variable

余生长醉 提交于 2021-01-27 06:27:29
问题 I have this sonar error Major: Found 'UR'-anomaly for variable 'language' (lines '83'-'85') in this function: public void saveAll(List<Language> languages){ //Found 'UR'-anomaly for variable 'country' (lines '83'-'85'). //Code Smell Major Open Not assigned 20min effort Comment for (Language language: languages) { save(language); } } how to fix this major error please, thanks for advance 回答1: Edit : Found even more information it this other SO post. While that is more PMD centric, the

Multi module project analysis with SonarQube

你说的曾经没有我的故事 提交于 2020-06-24 12:33:29
问题 SonarQube Server 5.1.2, Sonar-Runner 2.4 As provide in Multi-moduleProject i have created a project structure as Accounts | ->invoice | ->src ->receipt | ->src ->sonar.properties File:sonar.properties sonar.projectKey=org.mycompany.acc sonar.projectName=Account sonar.projectVersion=1.0 sonar.sources=src sonar.modules=invoice,receipt invoice.sonar.projectName=Invoice receipt.sonar.projectName=Receipt When execute with above configuration in sonar-runner i encountered with error "src" folder is

SonarQube + Firefox localization

我们两清 提交于 2020-01-25 18:29:47
问题 I am having a localization problem when loading SonarQube 5.1.1 on Firefox. The same problem does not happen on Google Chrome. It does not happen only on my machine. Even when I try to load the Sonar online demo, the same problem happen: http://nemo.sonarqube.org/ Wrong on Firefox Right on Google Chrome How can I fix that? Thanks! 回答1: Same here: SonarQube - No translations: NS_ERROR_DOM_QUOTA_REACHED The cause of the problem is the localstorage. Open JavaScript console (F12 -> Console) Type

SonarQube + Firefox localization

空扰寡人 提交于 2020-01-25 18:29:44
问题 I am having a localization problem when loading SonarQube 5.1.1 on Firefox. The same problem does not happen on Google Chrome. It does not happen only on my machine. Even when I try to load the Sonar online demo, the same problem happen: http://nemo.sonarqube.org/ Wrong on Firefox Right on Google Chrome How can I fix that? Thanks! 回答1: Same here: SonarQube - No translations: NS_ERROR_DOM_QUOTA_REACHED The cause of the problem is the localstorage. Open JavaScript console (F12 -> Console) Type

Email Notification unpredicted behaviour in sonarqube

大兔子大兔子 提交于 2020-01-11 10:45:31
问题 This is about sonarqube 5.1 version I have issue assign plugin and also subscribed to the emails in my profile page. I've done some erroneous SVN commits deliberately to check the email notification settings but it doesn't seem to work correctly. I receive emails sometimes but other times it doesn't work like that. I know this is not a constructive enough question but I'm really stucked here after trying all the scenarios and going through the documentation. Any insight would be highly

Email Notification unpredicted behaviour in sonarqube

余生长醉 提交于 2020-01-11 10:45:08
问题 This is about sonarqube 5.1 version I have issue assign plugin and also subscribed to the emails in my profile page. I've done some erroneous SVN commits deliberately to check the email notification settings but it doesn't seem to work correctly. I receive emails sometimes but other times it doesn't work like that. I know this is not a constructive enough question but I'm really stucked here after trying all the scenarios and going through the documentation. Any insight would be highly

Gather statistics for shared project

為{幸葍}努か 提交于 2020-01-05 11:20:13
问题 I have a C# solution with 3 projects. App.Console\App.Console.csproj App.Web\App.Web.csproj App.Shared\App.Shared.csproj Both App.Console and App.Web reference App.Shared . Currently, I build each project separately as they have slightly different MSBuild arguments. My current build process is as follows MSBuild.SonarQube.Runner.exe begin /k:"MyApp" /n:"My App" /v:"1.0" msbuild.exe msbuild App.Console\App.Console.csproj /t:'Rebuild' /p:Configuration=Release /p:OutDir=C:\Out\Console msbuild

Gather statistics for shared project

孤街浪徒 提交于 2020-01-05 11:20:12
问题 I have a C# solution with 3 projects. App.Console\App.Console.csproj App.Web\App.Web.csproj App.Shared\App.Shared.csproj Both App.Console and App.Web reference App.Shared . Currently, I build each project separately as they have slightly different MSBuild arguments. My current build process is as follows MSBuild.SonarQube.Runner.exe begin /k:"MyApp" /n:"My App" /v:"1.0" msbuild.exe msbuild App.Console\App.Console.csproj /t:'Rebuild' /p:Configuration=Release /p:OutDir=C:\Out\Console msbuild

Sonar reports different line and branch coverage than Idea, Eclipse, Maven and Jenkins

拜拜、爱过 提交于 2020-01-03 17:16:33
问题 I have all those tools reporting the same coverage with JaCoCo: 69% line coverage and 23% branch coverage. Note: Screenshots had been taken over several days so they have slightly different values, but the variance is < 1% Jenkins: Maven: Eclipse: However Sonar reports different values: Maven project is structured as follows: main (aggregator) java module js (node) module You can see the same coverage reported on main and java modules, and no coverage for the js one. I'm using the latest

SonarQube scanner: use non-default Java

旧时模样 提交于 2019-12-25 07:27:54
问题 I have a box running SonarQube scanner. The default JDK is 7. I need to run sonar-runner using JDK 8 but I would like to keep the default JDK at 7. I tried changing JAVA_HOME before running sonar-runner but had no luck. I also couldn't find any properties that can change that. Any thoughts? 回答1: Setting JAVA_HOME should work (see sonar-scanner source code if you're curious). It's behaving well for me with SonarQube Scanner 2.6.1. Default on Java 7: nico@deb-nico:~$ sonar-scanner INFO: Scanner