sonarqube

Why does TFS 2017 Sonar Build Definition gives No valid rules have been specified error?

懵懂的女人 提交于 2019-12-11 04:08:29
问题 I have a TFS 2017 Build definition created for HTML (TypeScript,Javascript) which executes the sonar task and after executing the sonar build definition, i get the Error: No valid rules have been specified message displayed in my build summary. This error get created during Run Code Analysis task in build definition. I did tried googling for the error and found this link enter link description here on Stack Overflow enter link description here on GitHub Where they have advice to add jsRules

SonarQube 3.7 squid rules repository

ぐ巨炮叔叔 提交于 2019-12-11 03:37:59
问题 When browsing a quality profile, I can't seem to filter out rules covered by the squid plugin specifically. Under the repository filter, squid doesn't show up as an option (just PMD, Checkstyle, etc). The reason I'm concerned about this is that the 'avoid use of deprecated method' rule was inactive by default, and I had to try and dig it out by searching in the inactive rules. Now I'm wondering what other squid rules I'm missing out on. Does this sound right? 回答1: ID is "squid" and repository

How to Use build-stability-plugin in sonar

为君一笑 提交于 2019-12-11 03:34:16
问题 I downloaded build-stability-plugin and put it in my plugins folder and re-started the sonar server. I can't see anything in the dashboard of projects related to build-stability-plugin. Is there anything else i have to do in pom.xml file of projects. I don't have any idea to make this working. What i have to do? 回答1: If you look at the documentation, you'll see that this plugin provides a widget. This means that you have to edit an existing dashboard (or create a new one) to add this widget

Sonar does not download plugins

不想你离开。 提交于 2019-12-11 03:27:38
问题 Someone knows why Sonar cannot download any plugins? I have a fresh v.3.7.4 installation. That's the first time I'm seeing this awesome server behaviour this way. Trace: 2014.04.25 05:13:26 WARN o.s.s.p.PluginDownloader Fail to download the plugin (jira, version 1.2) from http://repository.codehaus.org/org/codehaus/sonar-plugins/sonar-jira-plugin/1.2/sonar-jira-plugin-1.2.jar org.sonar.api.utils.SonarException: Fail to downloadhttp://repository.codehaus.org/org/codehaus/sonar-plugins/sonar

SonarQube post processing fails with unknown reason

梦想与她 提交于 2019-12-11 03:25:45
问题 SonarQube is failing without any meaningful error message for a .NET C# project. I tried running the end command with the -X option but the -X format is unrecognized. SonarScanner.MSBuild.exe end -X /d:sonar.login="87195" Any ideas on what could be wrong ? I ran a simpler project with 2 - 3 cs files and that succeeds. : : INFO: Sensor Python Squid Sensor [python] (done) | time=1880ms INFO: Sensor PythonXUnitSensor [python] INFO: Sensor PythonXUnitSensor [python] (done) | time=529ms INFO:

Custom rules menu doesn't seem to be present

不羁的心 提交于 2019-12-11 03:23:50
问题 I am logged in as an administrator but I can't seem to find the menu to add new custom XPATH rules. I'm following the steps from the link below : http://docs.sonarqube.org/display/SONAR/Extending+Coding+Rules "Once your new rule is written, you can add it SonarQube: Login as an Quality profile administrator Go to Quality Profile Select one of the quality profiles for the language you wish to add the rule to Look for the XPath rule template:" I'm using sonarqube server 4.4.1 This is my Rules

SonarQube: Ignore files during coverage report

让人想犯罪 __ 提交于 2019-12-11 03:14:30
问题 I want to provide a coverage report for a ui project. The project mainly consists of .ts files which under version control. The gulp command used to check coverage, generates .js files which are then checked for coverage. (and a coverage report that ... reports only on those files) The .js files are not under version control and, when produced are intermingled with the .ts files (i.e., wherever there is a .ts file, a .js file will be generated next to it). This creates the following issue:

Get Maven artifact properties from Jenkins plugin

瘦欲@ 提交于 2019-12-11 03:12:10
问题 I have a Jenkins and a Sonar installation, for which I'm writing a Jenkins plugin that acts after any Maven project is built and asks Sonar for that specific project's metrics. For this, I'm trying to get the Maven groupId and artifactId from the Jenkins plugin and parametrize a Sonar web API request with them. I'm currently using the perform(AbstractBuild build, Launcher launcher, BuildListener listener) extension point, but I can't seem to find the relevant attributes in the build object. I

Ant, Sonar - 0% code coverage

自作多情 提交于 2019-12-11 03:02:42
问题 I have problem with ant sonar task. This task end with success but don't run unit tests and don't show code coverage. Test task <target name="test" depends="....."> <path id="classpath"> <fileset dir="test/lib" includes="**/*.jar"/> <fileset dir="lib" includes="**/*.jar"/> <pathelement location="......."/> </path> <mkdir dir="build/tests"/> <javac srcdir="test/src" destdir="build/tests" includes="**/*.java" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}" nowarn="${nowarn}

How To Configure SonarQube GitHub Plugin With Jenkins

丶灬走出姿态 提交于 2019-12-11 02:58:01
问题 We are very interested in leveraging the GitHub integration on my team: http://docs.sonarqube.org/display/PLUG/GitHub+Plugin We use Jenkins as our CI Server and already have the GitHub Pull Request Builder working there. We have also been using SonarQube for analysis but have not had much luck with the preview or incremental modes and GitHub integration. Current versions are SonarQube 5.1.1 and GitHub Plugin version 1.0.1. We have the plug-in installed on SonarQube and have our GitHub