sonarqube

Sonar java.lang.OutOfMemoryError: PermGen space

血红的双手。 提交于 2019-12-23 03:22:25
问题 I'm getting the following error when running a build in ant buildcallbacks.xml:39: org.sonar.runner.RunnerException: java.lang.OutOfMemoryError: PermGen space It's the part of the build where sonar runs over our code. Is there a way for me to know exactly where this error is coming from i.e is it the sonar server or the client etc ? Here is line 39 of my buildcallbanks.xml <sonar:sonar /> EDIT: I've tried increasing the permsize from the wrapper.conf within Sonar and I still get the same

Where is the repository “Standards” of PHP CodeSniffer with the sonar PHP plugin?

被刻印的时光 ゝ 提交于 2019-12-23 03:00:09
问题 I have installed SonarQube™ and the PHP Plugin. I want to add a new CodeSniffer rule, like it's indicated in http://docs.codehaus.org/display/SONAR/PHP+Custom+Coding+Rules. However, I can't find the location of the "Standard" repository wich contains existing rules (PEAR, Squiz, Generic...). So I don't know where I have to add my new file corresponding to the xml rule I have defined in the sonar settings. Maybe I've missed something but I looked in every folder in the PHP plugin and didn't

Possible in Sonar to only view analysis done on new code?

时光毁灭记忆、已成空白 提交于 2019-12-23 02:55:28
问题 We have a legacy system that we have taken into our project and building upon. I would be interested in not only analyse the whole project in Sonar, but also to only analyse code added after a specific date. So is it possible in sonar to retrieve a static analysis "view" (coverage, violations, lines of code, etc.) only on code that has been added after a specific date? This would be very helpful! Thanks. 回答1: You can define the specific date in period configuration of project, this post can

Sonarqube set leak period to specific version other than previous version

你。 提交于 2019-12-23 02:49:05
问题 Evaluating Sonarqube (Version 5.4), we want to migrate our current workflow using another Audit tool, which works like that : The current version that runs in production is our reference version. A new development version is checked out from GIT, a diff process calculates the new and modified files vs. the reference version and starts the audit for these files. There's also a slightly different handling of legacy code (components that already existed in 2012) and new components (after 2012).

How to use the Ansible uri module to POST a file as form-data?

允我心安 提交于 2019-12-23 02:05:28
问题 SonarQube allows the upload of a profile.xml file via form-data POST request as follows: curl -u admin:admin -X POST http://sonar:9000/qualityprofiles/restore -F backup=@profile.xml I'm trying to translate this curl command into Ansible, using the uri module. Unfortunately, I don't see any chance to map the -F form-data option and the parameter backup to Ansible. Here's my attempt: - name: create quality profile uri: url: "{{ sonar_api_url }}/qualityprofiles/restore" method: POST body: "{{

代码规范审查 -Sonar环境搭建

…衆ロ難τιáo~ 提交于 2019-12-23 02:01:17
Sonar 概述 Sonar 是一个用于代码质量管理的开放平台,可以进行代码质量的持续跟踪审查,支持的语言包含C#、java、PHP、C等。可以通过UI一睹Sonar的强大之处。 Sonar 安装 Sonar是一个基于java的开源平台,环境安装包含 JDK安装、数据库安装、Sonar Server安装、Sonar Runner安装 。  一、 JDK安装 下载java SDK ,下载地址: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html     安装java sdk,直接双击exe进行运行 验证java安装是否成功,打开命令行,运行java –version, 如果显示如下图,代表安装成功!  二、 数据库安装   Sonar支持数据库类型:Sql server、MySQL、Oracle,此处以MySql为例 Mysql数据库下载地址: https://www.mysql.com/downloads/ , 具体安装步骤省略可自行学习。 配置Sonar数据库(创建Sonar数据库、用户等)    CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;    CREATE USER

“Unit Tests 1” but beneath it the List is empty

依然范特西╮ 提交于 2019-12-23 01:52:27
问题 I cloned https://github.com/SonarSource/sonar-examples.git then opened a command prompt under SonarSource/sonar-examples/tree/master/projects/languages/csharp and run the following commands (based on "Unit Test Execution Results Import (C#, VB.NET)" @ docs.sonarqube.org/pages/viewpage.action?pageId=6389772): MSBuild.SonarQube.Runner.exe begin /k:"org.sonarqube:csharp-simple-sq-scanner-msbuild" /n:"C# :: Simple Project :: SonarQube Scanner for MSBuild" /v:"1.0" /d:sonar.cs.xunit.reportsPaths="

Sonar Eclipse Plugin - “Test connection”

纵然是瞬间 提交于 2019-12-22 18:52:25
问题 I use Sonar 2.4.1, Maven 2, Eclipse SDK 3.5. Sonar is up and running at http://127.0.0.1:9000. I've installed Sonar Eclipse Plugin and when i try to add a sonar server and i click "Test connetion" button ( http://localhost:9000 with or without user and password) i don't get "Connected successfully". Waiting for your answers. 回答1: For the Sonar Eclipse Plugin, make sure there is no side effect with the Eclipse proxy setting. As illustrated in this bug report: Connection via proxy works fine -

Sonar Eclipse Plugin - “Test connection”

时光毁灭记忆、已成空白 提交于 2019-12-22 18:52:09
问题 I use Sonar 2.4.1, Maven 2, Eclipse SDK 3.5. Sonar is up and running at http://127.0.0.1:9000. I've installed Sonar Eclipse Plugin and when i try to add a sonar server and i click "Test connetion" button ( http://localhost:9000 with or without user and password) i don't get "Connected successfully". Waiting for your answers. 回答1: For the Sonar Eclipse Plugin, make sure there is no side effect with the Eclipse proxy setting. As illustrated in this bug report: Connection via proxy works fine -

MSBuild SonarQube runner skipping auto-generated files?

帅比萌擦擦* 提交于 2019-12-22 17:39:15
问题 I have set up a local SonarQube 5.1.1 server. I have also installed the C# plugin (version 4.1), as well as the MSBuild runner (version 1.0). I then performed two separate runs on the .NET codebase for the project I am currently working on: Using sonar-runner and the C# plugin Using the MSBuild runner Both runs were made through the CLI. However, the runs yielded very different results. Here is an example: In the first run SonarQube calculated the number of code lines to be roughly 956 000,