sonarqube

Running incremental sonar analysis in server for changeset in codebase

拈花ヽ惹草 提交于 2019-12-12 04:54:53
问题 I have a legacy application build in java with code base of 60 lk lines of code integrated with sonar server . Since the codebase is integrated with Sonar for the first time there are several thousand issues reported by sonar code quality rules. FOr each run in the server, it takes close to 20 hours in the server. I am looking for an option in sonar analysis, so that the analysis is run in the server only for the changes made in the codebase . This way, I can integrate and report the overall

How to ignore the 'not covered by tests' warning?

橙三吉。 提交于 2019-12-12 04:37:00
问题 I am using SonarQube version 6.4. I am not writing any test cases, when I check SonarQube, it shows quality gate failed. The error message is: not covered by tests. Is it possible to avoid or ignore the same for all the projects? 回答1: Change the default quality gate settings. Go to Quality Gates , select the default Quality Gate and delete the code coverage metrics. 来源: https://stackoverflow.com/questions/45365779/how-to-ignore-the-not-covered-by-tests-warning

command line sonarlint show only new issues

霸气de小男生 提交于 2019-12-12 04:34:08
问题 is there a way to configure command line Sonar-lint to show only new issues? I've heard it's possible while using the different plugins for IDE's but I'd like to integrate the command line. Thanks ahead. 回答1: No this is not yet possible but indeed would make sense. 来源: https://stackoverflow.com/questions/39686838/command-line-sonarlint-show-only-new-issues

SonarQube generic coverage sensor fails with with an unknown language for go

坚强是说给别人听的谎言 提交于 2019-12-12 04:23:24
问题 I am trying to have SonarQube (6.0) with generic test coverage plugin (1.2) read the coverage report which I created for go language. Coverage report is exactly in the xsd schema that sonar expects. However the analysis with sonar-scanner 2.8 fails with following exception. java.lang.IllegalStateException: Line 2 of report test-results.xml refers to a file with an unknown language: queue/queue.go I am passing following in sonar-project.proeprties. sonar.import_unknown_files=true sonar

How to suppress execution of post-jobs when using BuildBreaker plugin

吃可爱长大的小学妹 提交于 2019-12-12 04:13:33
问题 I developed a plugin for my company. The main work is done and the plugin itself works also fine for now. All i have is kind of "aesthetics problems". When a build job is finished without failure the console output tells me the following thing: (just for the protocol: I'm using Jenkins to execute build jobs) [...] [INFO] [16:12:08.270] <- Clean snapshot 574387 [INFO] [16:12:08.723] Executing post-job class org.sonar.plugins.projectkeychecker.ProjectKeyCheckerSensor [INFO] --------------------

How to migrate a technical user to a LDAP one?

孤人 提交于 2019-12-12 04:03:04
问题 I have nearly all my users setup as local (technical as SonarQube doc calls them) users and just installed & configured the LDAP plugin 2.2 to connect to my Active Directory. The connection works fine: if an user unknown to SonarQube but existing in LDAP tries to log in, its user is automatically created. I'd like to convert my existing SonarQube users (not linked to LDAP) to LDAP users so that their password and group memberships are automatically updated, but could not find how to do this

SonarQube - No translations: NS_ERROR_DOM_QUOTA_REACHED

为君一笑 提交于 2019-12-12 03:59:29
问题 we are using SonarQube 5.1.2 on a domain like sonarqube.companyname.com . Because of a firefox bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1064466) the local storage quota isn't based on the subdomain. As we are using many applications on domains with the suffix .companyname.com which also uses localStorage I got the following error in the JavaScript console: NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached And the result looks like this: http://i.stack.imgur.com

IllegalStateException when migrating databases from SonarQube 5.3 to 5.6.2 (and 5.5)

萝らか妹 提交于 2019-12-12 03:35:20
问题 While trying to upgrade databases from SonarQube 5.3 to SonarQube 5.6.2, I am getting a "java.lang.IllegalStateException" with the message "Fail to decompress and deserialize source data" (originally caused by com.google.protobuf.InvalidProtocolBufferException: Stream is corrupted). I have tried this with several different databases (we have something like 40 teams using SonarQube 5.3 and wanting to upgrade) and with both 5.5 (in case a smaller step would have worked) and 5.6.2. I get the

SonarLint KeyNotFoundException

怎甘沉沦 提交于 2019-12-12 03:34:54
问题 I'm seeing a strange error when using Sonar to analyse a C-sharp code base. 14:59:19.350 INFO - SonarLint for Visual Studio version 1.3.0.0 14:59:20.154 ERROR - 14:59:20.337 ERROR - Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. 14:59:20.338 ERROR - at System.Collections.Immutable.ImmutableDictionary`2.get_Item(TKey key) 14:59:20.340 ERROR - at SonarLint.Runner.Configuration.AddAnalyzerCommentRegularExpression(Builder

How to configure multi-module Maven + Sonar + JaCoCo to get overall coverage report in Sonar?

江枫思渺然 提交于 2019-12-12 03:33:26
问题 From the past one week I am trying to get code coverage of my multi module project using Sonar. My project structure is as follows. Web Service XYX +- pom.xml +-SubFOlder +- Module 1 +- pom.xml +- Module 2 +- pom.xml +- Module3 +- pom.xml Means I have one folder in my directory and inside that I have all my sub modules. am able to generate a jacoco.exec file in all the sub modules target directory. Want to know the way to combine all these submodules jacoco.exec so that I can get a merged