我想将重复检查排除在我的测试文件之外,但是其他的内容都是一样的。
这是我的.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'仍然没有骰子:
发布于 2018-08-14 15:44:18
您似乎缺少了应用复制配置所需的配置文件中的engines属性。
您应该将配置文件更改为如下所示:
engines:
duplication:
enabled: true
exclude_paths:
- 'test/**'
- '**.test.js'发布于 2018-08-14 16:43:29
您的配置文件似乎错了。
查看文档:
应该是这样的:
engines:
duplication:
enabled: true
exclude_paths:
- 'test/**'
- '**.test.js'https://stackoverflow.com/questions/51842669
复制相似问题