sonarQube不排除测试文件 [英] sonarQube Not excluding test files
本文介绍了sonarQube不排除测试文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我添加了
sonar.exclusion=src/test/java/**/*.*
sonar.test.exclusions=**/test/**/*.*
将
properties放入sonar-project.properties文件.但是在创建sonarQube代码覆盖率文档时并不排除测试文件.我正在使用jenkins作为构建工具
properties into the sonar-project.properties file. But it is not excluding the test files when creating sonarQube code coverage document. I am using jenkins as building tool
推荐答案
根据手册,它应该是sonar.exclusions
,而不是sonar.exclusion
.
According to the manual it should be sonar.exclusions
, not sonar.exclusion
.
这篇关于sonarQube不排除测试文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文