gpt4 book ai didi

SonarQube 从 4.2 升级到 4.3 后不分析文件

转载 作者:行者123 更新时间:2023-12-02 21:57:21 24 4
gpt4 key购买 nike

将 sonarqube 4.2 升级到 4.3 后,我收到此消息:

13:15:18.349 WARN - File '%s' is ignored. It is not located in module basedir '%s'. [repeated for (assuming) all my c# files]

13:15:18.349 INFO - 0 files indexed

我们从 msbuild 运行 Sonar ,并传入(其中包括)命令行参数: -D sonar.sources="../../Source/"

哪个已正确解析,完整路径可以在日志记录中看到

输出显示

C:\projects\myproject\build\Tools\SonarRunner.2.3\bin..

SonarQube Runner 2.3

Java 1.7.0_51 Oracle Corporation (64-bit)

Windows 8 6.2 amd64

INFO: Runner configuration file: C:\projects\project\build\Tools\SonarRunner.2.3\bin..\conf\sonar-runner.properties

INFO: Project configuration file: NONE

INFO: Default locale: "en_GB", source code encoding: "UTF-8"

INFO: Work directory: C:\projects\project\Build\Scripts.sonar

INFO: SonarQube Server 4.3

13:13:43.706 INFO - Load batch settings

13:13:43.924 INFO - User cache: C:\Users\username.sonar\cache

13:15:16.155 INFO - No quality gate is configured.

13:15:16.356 INFO - Base dir: C:\projects\project\Build\Scripts

13:15:16.356 INFO - Working dir: C:\projects\project\Build\Scripts.sonar

13:15:16.356 INFO - Source dirs: C:\projects\project\Source

13:15:16.356 INFO - Source encoding: UTF-8, default locale: en_GB

13:15:16.356 INFO - Index files

13:15:16.358 INFO - Excluded tests:

13:15:16.358 INFO - /.IntegrationTests//.*

13:15:16.358 INFO - /.UnitTests//.*

13:15:17.287 WARN - File '%s' is ignored. It is not located in module basedi r '%s'.

关于如何解决这个问题有什么建议吗?

最佳答案

This可能有帮助(更新:网址不再可用:Alternative)

“特殊情况可以指定模块基目录默认情况下,模块基目录是根据模块标识符猜测的(如上面的示例所示)。但可以使用 sonar.projectBaseDir 属性重新定义它。”

关于SonarQube 从 4.2 升级到 4.3 后不分析文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23696251/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com