从分析中排除文件夹 [英] Exclude folder from analysis

查看:115
本文介绍了从分析中排除文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Internet浏览并尝试了100万种不同的方式,但是没有找到答案.

I look through the Internet and tried a million diferent ways, but didn't find an answer.

当我使用maven启动它时,有什么方法可以从Sonar分析中排除一些带有源文件的文件夹?

Is there any way to exclude some folders with source files from the Sonar analysis, when I use maven to launch it (e.g. mvn sonar:sonar)?

推荐答案

您可以使用"sonar.exclusions"属性使用模式排除源文件:请参见

You can use the "sonar.exclusions" property to exclude source files using patterns: see http://docs.sonarqube.org/display/SONAR/Analysis+Parameters

这篇关于从分析中排除文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆