当我运行声纳跑步来分析我的简单C#项目时,分析终止于SonarLint.Runner.exe上的权限被拒绝的错误:
ERROR: Error during SonarQube Scanner execution
ERROR: java.io.IOException: Cannot run program "/opt/sonarqube-5.4/projects/ArturiCSharpSort/.sonar/SonarLint.Runner/SonarLint.Runner.exe": error=13, Permission denied
ERROR: Caused by: Cannot run program "/opt/sonarqube-5.4/projects/ArturiCSharpSort/.sonar/SonarLint.Runner/SonarLint.Runner.exe": error=13, Permission denied
ERROR: Caused by: error=13, Permission denied有效
-rw-r--r-- 1 root root 19456 Apr 5 11:14 .sonar/Lint.Runner/SonarLint.Runner.exe以下是我的声纳项目:
# Root project information
sonar.projectKey=ArturiCSharpSort
sonar.projectName=ArturiCSharpSort
sonar.projectVersion=1.0
# Some properties that will be inherited by the modules
sonar.sources=.
#List of the module identifiers
#sonar.modules=
# Properties can obviously be overriden for
# each module - just prefix them with the module ID
#module1.sonar.projectName=
#module2.sonar.projectName=我试着在SonarLint.Runner.exe上扮演一个chmod,但它对每一个分析都是一种回击。如何对C#项目进行分析?
发布于 2016-04-05 10:41:24
C#项目的分析必须在Windows环境下进行。在这里,它失败了,因为这个项目是在Linux上分析的。
问题是,SonarQube C#插件实际上是针对Windows .NET生态系统的,您可以在这里构建/维护.NET项目。它必须与SonarQube MSBuild扫描仪一起使用,这需要MSBuild 14.0。
https://stackoverflow.com/questions/36422599
复制相似问题