我有一个C#项目,它使用StyleCop.Analyzers (基于罗斯林)。当我们使用msbuild 14编译这个项目时,我们会看到StyleCop.Analyzers引发的以下警告:
warning SA1005: Single line comment must begin with a space.
到现在为止还好。这就是我们所期望的。
然后,我们创建了一个简单的脚本,用于在SonarQube msbuild /stop中进行此编译:
cd MyProjectRoot
"D:\MSBuild.SonarQube.Runner-2.0\MSBuild.SonarQube.Runn
如果开发人员对新代码的单元测试代码覆盖率不超过70%,Java项目的Jenkins/SonarQube作业就会失败。我们正在尝试为JavaScript项目设置相同的东西。
我在使用Karma和我为其编写的插件生成类似JUnit的XML文件方面做了大量工作。无论如何,当我在没有单元测试的情况下提交新的JavaScript代码时,它不会破坏Jenkins构建。以下是Jenkins工作日志的相关部分:
...
07:13:37.417 INFO - Parsing Unit Test run results in Surefire format from folder /home/tomcat/.
SonarQube不支持并行执行,因为并行执行失败,出现以下错误:
Caused by: org.sonar.api.utils.SonarException: The project is already been analysing
我正在使用SonarQube v4.3.3进行代码检查。
现在我的hudson作业是并行运行的,由于这个限制,我无法将声纳分析添加到我的Hudson作业中。
请建议如何在使用SonarQube的连续管道中使用SonarQube和hudson。
我使用的许多Python程序都会发出以下警告:
PytzUsageWarning: The localize method is no longer necessary, as this time zonesupports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
localized_eve