【发布时间】:2018-08-14 13:28:01
【问题描述】:
我想从我的测试文件中排除重复检查,但其他一切都保持不变。
这是我的.codacy.yml 文件:
duplication:
enabled: true
exclude_paths:
- 'test/**'
- '**.test.js'
但我仍然在测试文件中报告了所有重复项。
有人知道怎么做吗?
编辑根据我尝试的以下建议:
engines:
duplication:
enabled: true
exclude_paths:
- 'test/**'
- '**.test.js'
我也试过不带引号:
engines:
duplication:
enabled: true
exclude_paths:
- test/**
- '**.test.js'
还是没有骰子:(
【问题讨论】:
-
我刚遇到这个问题,它帮助了我。它适用于我们的 Android 项目。唯一的区别是我做了
- '**/test/**'。