我正在检查SonarQube 5.4和最新的LDAP插件1.5.1.然而,有几个问题.
第一.我的AD帐户是majcicam.如果我使用它登录,它将正确显示在用户列表中.但是,如果我使用MajcicaM(注意大写字母)登录,则会在列表中添加另一个用户:
从附图中可以看出.对于我所做的每一次登录,似乎都将其视为区分大小写,并将其视为不同的用户.
第二件事.一旦我将一个组分配给我的用户,在下次登录时这些设置就会消失.似乎他们没有坚持下去.
难道我做错了什么?这是一个错误吗?我的设置搞砸了吗?
谢谢
马里奥
我正在尝试查找拥有 issuesadmin 权限的特定项目(按projectKey)的用户列表。我找到了一个有记录的 API,它让我非常接近:
api/permissions/search_project_permissions
Run Code Online (Sandbox Code Playgroud)
但我收到的响应仅包含摘要信息:每种权限类型的组/用户计数。
有谁知道是否有办法获取用户的登录详细信息?
升级到5.5版本后,现在最新的(5.6)SonarQube总是将我通过插件创建的问题显示为"Code Smell".我想了解更多关于分类的信息,以及如何将它们添加为其他类型("漏洞"和"漏洞").我创建问题的代码如下:
Issuable issuable = this.resourcePerspectives.as(Issuable.class, inputFile);
if (issuable != null) {
Issue issue = issuable.newIssueBuilder()
.ruleKey(activeRule.ruleKey())
.line(vulnerability.getLine())
.message(someMessage)
.severity(severity)
.build();
issuable.addIssue(issue))
} //...
Run Code Online (Sandbox Code Playgroud) 我的jdk版本是1.7.0.我搜索了答案,但我找不到正确的答案.这是我得到的错误.Plaese帮助我解决问题.
C:\sonarqube-5.6\bin\windows-x86-64>StartSonar.bat
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.UnsupportedClassVersionError: org/sonar/application/App : Unsupport
ed major.minor version 52.0
jvm 1 |
jvm 1 | WrapperSimpleApp Usage:
jvm 1 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_a
rguments]
jvm 1 |
jvm 1 | Where:
jvm 1 | app_class: …Run Code Online (Sandbox Code Playgroud) 我有一组共同拥有大量代码的项目.SonarQube显示高比例的重复.当我去查看每个文件的重复时,重复代码上的引用指向代码相同的其他项目代码.有没有办法让重复只针对同一个项目运行?
我使用Bamboo,SonarQube和Maven插件在SonarQube中生成Jacoco报告.它正在生成jacoco.exec文件,但如何在SonarQube中显示报告?以下插件我正在使用'
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Sets the path to the file which contains the execution data. -->
<destFile>${project.build.directory}/jacoco.exec</destFile>
<!-- Sets the name of the property containing the settings for JaCoCo
runtime agent. -->
<propertyName>surefireArgLine</propertyName>
</configuration>
</execution>
<!-- Ensures that the code coverage report for unit tests is created
after unit tests have been run. -->
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<!-- Sets the path to the file which contains the …Run Code Online (Sandbox Code Playgroud) 如果我可以获得以下方案的帮助,请说明.我的问题是确定如何在SonarQube 4.5.7上提取/导出所有java规则.我尝试了以下两个API调用,但是我得到了"你正在寻找的页面不存在".
我的sonarqube版本显示了781个java规则,我的目标是将它们提取到excel或csv文件中
[1] curl -X GET -v -u admin:admin http:// localhost:9000/api/rules?language = java
[2] curl -X GET -v -u admin:admin http:// localhost:9000/api/rules/search?languages = java >> java.json
第二个选项似乎生成一个输出,但并非所有781规则都被提取了谢谢,shavantha
我在服务器上安装了Sonarqube,并给出了域名,如http://sonarqube.xyz.com:9000,现在我希望将URL设置为https.
我已经在conf文件中更改了sonar.properties的属性,并尝试使用带有URL重写的IIS重定向URL.
我无法在 Windows 7 上运行 Sonarqube 6.7。
我刚刚从网站上下载了它。我使用 JDK 1.8.0_144 作为 Java 运行时。当我运行“StartSonar.bat”时,出现以下异常:
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2017.12.11 14:17:21 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Tools\sonarqube-6.7\temp
jvm 1 | 2017.12.11 14:17:21 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2017.12.11 14:17:21 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] …Run Code Online (Sandbox Code Playgroud)似乎新规则适用于最新版本。我有几个问题报告为“应正确使用Printf样式的格式字符串(squid:S3457)”
我不了解说明,在我的情况下出了什么问题:
LOGGER.info("Checking for client process pid: {0}", parentProcessId);
// issue: String contains no format specifiers
Run Code Online (Sandbox Code Playgroud)
在规则说明中,我们有:
java.util.Logger logger;
logger.log(java.util.logging.Level.SEVERE, "Result {0}.", myObject.toString()); // Noncompliant; no need to call toString() on objects
logger.log(java.util.logging.Level.SEVERE, "Result.", new Exception()); // compliant, parameter is an exception
logger.log(java.util.logging.Level.SEVERE, "Result '{0}'", 14); // Noncompliant {{String contains no format specifiers.}}
Run Code Online (Sandbox Code Playgroud)
和
java.util.Logger logger;
logger.log(java.util.logging.Level.SEVERE, "Result {0}.", myObject);
logger.log(java.util.logging.Level.SEVERE, "Result {0}'", 14);
Run Code Online (Sandbox Code Playgroud)
我的案件有什么区别?您能帮我理解什么是正确的书写方式吗?