sonarqube

Maven sonar findbugs fails with no source to compile

社会主义新天地 提交于 2019-12-11 09:42:26
问题 I have a multiple module project and i'm trying to configure it with sonar. But sonar Findbugs quality profile fails when i execute mvn sonar:sonar (after building the project ) from root. I got following exception. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project catalog-management-system: Can not execute Sonar at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217

Error Running Sonar connected to SQL Server 2005. SONAR.dbo.rules for column description

大憨熊 提交于 2019-12-11 09:39:46
问题 When I start Sonar (StartSonar.bat), I get the following error in the log file. Wrong column type in SONAR.dbo.rules for column description. Found: ntext, expected: nvarchar(max) Looking at the column in SQL Server Management Studio it is nvarchar(max) I'm running: DB: SQL Server 2005 OS: Windows 7 64 bit Sonar: 2.11 Tried these drivers: sqljdbc-1.2.2828.100.jar sqljdbc4.jar (Microsoft SQL Server JDBC Driver 2.0) sqljdbc4.jar (Microsoft SQL Server JDBC Driver 3.0) sqljdbc4.jar (Microsoft SQL

Skipping old code from code validation in sonar

早过忘川 提交于 2019-12-11 09:36:35
问题 We have a scenario where we got a .net project and it has some old code. Now, we started implementing sonar code validation on this and unfortunately we got many validation issues from old code which is not written by us. So, as per the agreement we are not supposed tho fix those issues. Old and current code is available in SVN repository. Is there any posssiblity to skip the old code based on SVN revision and performing the code validation only on the top of baseline changes? 回答1: The only

java script parsing error during jenkins nightly build. after upgrading sonar to 4.3.2

余生颓废 提交于 2019-12-11 09:25:13
问题 After upgrading sonar from 3.4 to 4.3.2 version, we are getting java script parsing error during jenkins nightly build. It was all working fine in last version.The sonar runner is still of version 2. COuld you please advice on resolving this error. The plugin used is sonar-javascript-plugin-1.6 , sonar-squid-java-plugin-1.6 . Error details: [INFO] [12:56:47.163] Sensor JavaScriptSquidSensor... [INFO] [12:56:47.275] 98 source files to be analyzed [INFO] [12:56:57.330] 10/98 files analyzed,

SonarQube Installation with Oracle DB - Getting user does not exists

走远了吗. 提交于 2019-12-11 09:01:19
问题 Having trouble installing SonarQube 3.7 with Oracle - always getting ORA-01435: User does not exist . Before pasting the stack trace here are the steps I followed to verify Was able to connect to the same user using SQL Plus and SQL Developer. Was able to create a table and insert some dummy data for the same user to make sure it is working fine. Change in Oracle thin JDBC URL throws error saying that URL is malformed. Here is my sonar.properties file sonar.jdbc.username: test_sonar sonar

使用SonarQube检测c++代码漏洞

ε祈祈猫儿з 提交于 2019-12-11 08:51:34
使用SonarQube检测c++代码漏洞 今天我们来学习如何搭建SonarQube并使用SonarQube来检测c++的代码漏洞。 准备工作 .dk11安装包 sonar-scanner部分安装包 中文包sonar-l10n-zh-plugin-1.16 cppcheck安装包 mysql安装包(如果未涉及到数据库的代码检测,此部分可以不准备) 下载地址 注意事项 SonarQube的版本,推荐安装7.9.1版本的,此版本支持较多插件,属于稳定版本,使用起来比较方便。 设置环境变量的时候,碰到过不生效的情况,如果按照流程操作无误,在仔细核对路径没有问题后,重启下电脑。重新拉起sonar服务,试一下,如果还不行,喝杯茶。笔者碰到过,头天晚上不生效,第二天就可以了的情况。 报错调试:在碰到报错时,用网页翻译一下,看下是什么报错,再根据报错信息解决问题。 每次重启电脑或者把sonar的服务关闭后,都要重新进入到bin目录下,重新把sonar的服务拉起来,才能在网页上访问到。否则的话,服务不在的。 安装步骤 1.安装jdk11 这里参考另外的一篇文章进行安装,此文写的十分详细,我在这里就不赘述了。 JDK11 JAVA11下载安装与快速配置环境变量教程 2.安装sonar 在安装好jdk11以后,我们再来装SonarQube的主体部分。 1.解压缩sonar主体程序到指定路径下

How to configue SMTP in sonar.properties?

时间秒杀一切 提交于 2019-12-11 08:40:58
问题 SonarQube's SMTP settings can be changed in the web UI. How can I set those SMTP settings in the sonar.properties configuration file? 回答1: You can also use sonar.properties to define the smtp settings. But this approach is not recommended and therefore barely documented. However, there is a little of documentation in the sources. An example: email.smtp_host.secured=my.smtp.server email.smtp_port.secured=9918 email.smtp_secure_connection.secured=true email.smtp_username.secured=slartidan email

Why SONAR fails at waitForQualityGate() with error 401?

房东的猫 提交于 2019-12-11 08:39:59
问题 Using pipeline code, stage ('SonarQube') { withSonarQubeEnv { dir ('mydir/') { sh "'${mvnHome}/bin/mvn' sonar:sonar -Dsonar.login=something -Dsonar.projectKey=someproj -Dsonar.projectName=somename" } } timeout(time: 15, unit: 'MINUTES') { def qg = waitForQualityGate() if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" } } Which progresses crrectly over the first mvn section and breaks on waitforqualitygate() operation: org.sonarqube.ws.client

SonarSource for Android project in Eclipse [closed]

回眸只為那壹抹淺笑 提交于 2019-12-11 08:27:14
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm trying to use SonarSource for my Android project development for which I followed the steps provided here to installing Sonar

SonarQube complains about using ResponseEntity with a wildcard

荒凉一梦 提交于 2019-12-11 07:37:19
问题 I use SpringBoot for REST web services development and SonarQube for static analysis. I have a few endpoints in my application that look the following way: @PostMapping ResponseEntity<?> addSomething(@RequestBody Some object) { // some code there return new ResponseEntity<>(HttpStatus.NO_CONTENT); } SonarQube complains about using ResponseEntity with a wildcard, reporting me a Critical issue "Generic wildcard types should not be used in return parameters" . I wonder if I should disable this