Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sonarqube sonar-maven3-plugin使用客户检查样式文件分析多语言项目_Sonarqube_Checkstyle - Fatal编程技术网

Sonarqube sonar-maven3-plugin使用客户检查样式文件分析多语言项目

Sonarqube sonar-maven3-plugin使用客户检查样式文件分析多语言项目,sonarqube,checkstyle,Sonarqube,Checkstyle,我的项目有一个使用Eclipse创建的.checkstyle文件,该文件引用了svn url中保存的checkstyle文件。以下是文件如何引用外部URL的示例: <local-check-config name="My Checkstyle" location="https://svn.me.com/viewvc/dev-Standards/trunk/Checkstyle/My%20Checkstyle.xml" type="remote" description="">

我的项目有一个使用Eclipse创建的.checkstyle文件,该文件引用了svn url中保存的checkstyle文件。以下是文件如何引用外部URL的示例:

  <local-check-config name="My Checkstyle" location="https://svn.me.com/viewvc/dev-Standards/trunk/Checkstyle/My%20Checkstyle.xml" type="remote" description="">
    <additional-data name="cache-file" value="false"/>
  </local-check-config>

该文件还为不同的文件类型标识许多其他checkstyle配置文件类型

有没有办法将此文件作为参数传递到sonar-maven3-plugin中?下面是我目前如何呼叫声纳的: mvn安装org.codehaus.sonar:sonar-maven3-plugin:3.5-RC4:sonar

.checkstyle文件位于项目的根目录下,与pom.xml处于同一级别。

请参阅-特别是“”

基本上,在“设置”、“质量配置文件”、“Java配置文件”下,单击“创建”。下一个对话框将包括一个选项,用于提供一个Checkstyle配置文件,并使用该文件填充新的质量配置文件。(为其提供
My%20Checkstyle.xml
——而不是特定于eclipse cs的
.checkstyle
文件。)