英文:
Exclude Test case from check style
问题
我想排除 Android 单元测试和 VTA 测试用例以及与之相关的文件,以免 CheckStyle 检查。我已尝试过一些方法,但无法解决。请帮助我排除这些文件。提前感谢。
英文:
I would like to exclude android unit & VTA test cases and its related files from checkStyle.I did surf few and unable to solve. Kindly help to do exclude files. Thanks in advance.
答案1
得分: 1
我相信你会做
```groovy
checkstyleMain.configure {
exclude '**/com/package1/**'
}
checkstyleTest.configure {
exclude '**/com/package2/**'
}
或者
tasks.withType(Checkstyle).configureEach {
exclude '**/com/package1/**'
exclude '**/com/package2/**'
}
<details>
<summary>英文:</summary>
I believe you'd do
```groovy
checkstyleMain.configure {
exclude '**/com/package1/**'
}
checkstyleTest.configure {
exclude '**/com/package2/**'
}
Or perhaps
tasks.withType(Checkstyle).configureEach {
exclude '**/com/package1/**'
exclude '**/com/package2/**'
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论