SonarQube 4.3.2 Javascript 排除 [英] SonarQube 4.3.2 Javascript exclude
本文介绍了SonarQube 4.3.2 Javascript 排除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们在 Java 项目中使用 SonarQube 4.3.2 版.我们要排除当前正在分析的所有 javascript 文件.我们尝试通过在排除列表中使用 *.js 来排除,但它不起作用.请帮忙.
We are using SonarQube version 4.3.2 with our Java project. We want to exclude all javascript files which are currently being analyzed. We tried excluding by using *.js in exclusion list, but it did not work. Please help.
推荐答案
在您的 sonar-project.properties
中,您有两种方法可以忽略文件:
In your sonar-project.properties
, you have two ways to ignore files:
sonar.exclusions=the/full/path/*.xml
将忽略path
中的所有.xml
文件.sonar.exclusions=**/*.xml
将忽略您所在文件夹和子文件夹中的所有.xml
文件.
sonar.exclusions=the/full/path/*.xml
will ignore all.xml
files inpath
.sonar.exclusions=**/*.xml
will ignore all.xml
files in the folder and sub-folders where you are.
以下是不同的通配符:
* zero or more characters
** zero or more directories
? a single character
您可以在 声纳文档中找到更多信息
You can find more information on Sonar Documentation
这篇关于SonarQube 4.3.2 Javascript 排除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文