问题标签 [sonarqube-4.5]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
831 浏览

sonarqube - 安装后声纳不启动

0 投票
0 回答
97 浏览

sonarqube - SonarQube 与 sqlserver 可信连接

我们如何使用 Sql-server 可信连接模式设置 sonarqube。我正在设置 sonarqube 5.0.1,它直接使用 sql server 身份验证模式,即使用 sql server 用户名和 pwd 更改声纳属性文件

任何人都可以解释一下吗?

0 投票
0 回答
3010 浏览

sonarqube - 声纳循环依赖问题

我从 Sonar 那里得到了很多这些违规行为,但我认为它们并不是真正的循环。

所以例如我有:

de.codeplumber.core.abc.core.Holder.java
de.codeplumber.core.xyz.core.User.java

Holder.java 使用 User.java 作为属性之一,并具有用于获取和设置 User 对象的 getter 和 setter。下面是 Holder.java 的代码

现在 Sonar 正在报告 Holder.java 中的违规行为

移除对源文件“de/codeplumber/core/xyz/core/User.java”的依赖以打破一个包循环。

User.java的包对Holder.java的包没有反向依赖。

我不明白为什么声纳报告这个问题。以前我在其他一些类中有循环依赖,我修复了它,因为存在直接循环依赖。

任何帮助表示赞赏。

0 投票
1 回答
307 浏览

c++ - 为什么声纳指标有时会出错?

我的声纳指标有时是错误的:

  • 评论数
  • 班级数
  • 行数
  • 代码行数

例如,当我单击类的度量标准时,我看到一些文件的类计数正确,但我看到一些文件的所有度量标准都为 0 值

怎么了 ?

(可能有内存限制或文件数限制?...)

0 投票
1 回答
470 浏览

sonarqube - How should sonarqube quality gates be used with automated builds?

Our organization is currently using sonarqube to fail a SCM triggered automated builds. Right now, our quality gate is firing when there are any open or reopened issues (with the understanding that someone needs to fix or "accept" the issue before the build will continue). Unfortunately, there are concerns that we are delaying code propagation for code formatting issues and other very minor offenses. Also, this is requiring quite a bit more manual intervention than we originally expected.

We want certain classes of issues to trigger a build failure, but the "new issues" filter only fire once. on the subsequent automated build they are no longer new so they no longer fire the gate.

Is there anyway to set up the equivalent to "Break the build if there are more than 0 open/reopened breaking/critical issues."?

EDIT: Sorry, I forgot to mention that we have about 15k "confirmed" issues that is serving as our backlog. so the non-new issue filters wont work either. Also I am open to minor changes to our workflow.

0 投票
2 回答
1784 浏览

c# - 声纳 C# 插件。无法使用 BOM 解析文件 UTF-8

我有安装了 C# 插件的 sonarqube 4.5.4,它无法解析 UTF-8 BOM 编码的文件。

有人有这个问题吗?

0 投票
1 回答
1428 浏览

java - 如何使用 Maven 和 Bamboo 在 Sonar 4.5.2 中获得 Cobertura 覆盖?

我们升级到Sonar 4.5.2现在没有从 Cobertura 获得单元测试覆盖率数据,使用 Bamboo 和 Maven 构建。

我发现我需要添加到 Maven 构建命令,但是在 Bamboo 构建之后
cobertura:cobertura -Dcobertura.report.format=xml
添加它仍然没有显示单元测试覆盖率。在, 或命令Sonar 4.5.2中我还需要做些什么吗?声纳配置有什么要改变的吗?pom.xmlmvn sonar:sonar

因此,我正在运行:

我是该项目,语言,工具的新手,因此将不胜感激。(也就是说,不要只说添加这个标签,请告诉我在 pom 中的位置。谢谢。)

pom.xml随附的。我不确定需要什么部分,所以我包括了所有非公司特定的部分。

0 投票
1 回答
445 浏览

sonarqube - SonarQube 预览/增量分析的覆盖率报告

我们最近将我们的持续集成环境设置为在 Git 上的合并请求被接受之前进行增量代码分析。我们已经使用了 HTML 问题报告和 Build Breaker 插件。一切都很漂亮。问题是,我们遇到了一些问题,因为构建在 < 85% 的代码覆盖率时被破坏。我没有找到任何插件让用户知道覆盖率下降的地方。有什么方法可以显示我的服务器上记录的分析与詹金斯增量构建的分析之间的比较?

非常感谢!

0 投票
1 回答
454 浏览

sonarqube - 无法显示全局权限和新的 LDAP 用户无法登录

我们已从 4.0 升级到 4.5.4 SonarQube。当新的 ldap 用户尝试登录或管理员尝试在设置菜单中显示全局权限时,会发生 JDBCError。

当我想显示全局权限时,会出现以下错误:

这里是登录时发生的错误:

这里我们使用的插件:

有关更多信息,请查看 sonar.properties。

提前致谢

问候盖比

声纳属性

0 投票
1 回答
199 浏览

sonarqube - Sonar global settings disappeared

The global settings options doesnt seem to available anymore. Im logged in as admin and im using Sonarqube 4.0. I did a restore of Sonar from the past working state, but still that doesn't work as well. May be something changed on DB. Any suggestions how to make the settings button re-appear.

Thanks, Manny! Screen shot of sonar and admin login