jenkins-bot merged this change.
[tests] Fix similar code checking in codeclimate
similar-code threshold describes the mass code block to be
analyzed for duplication. This was mistakenly decreased from
default 32 to 2. The count threshold should be increased
instead.
Refer https://github.com/codeclimate/codeclimate-duplication
for this settings
Change-Id: Idec34f3d3571d81ea9544dd20c398c580ead3625
---
M .codeclimate.yml
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.codeclimate.yml b/.codeclimate.yml
index d671f0f..2b6b811 100644
--- a/.codeclimate.yml
+++ b/.codeclimate.yml
@@ -13,9 +13,12 @@
method-lines:
config:
threshold: 30
- similar-code:
+
+plugins:
+ duplication:
+ enabled: true
config:
- threshold: 3
+ count_threshold: 3
exclude_patterns:
- "docs/"
To view, visit change 513316. To unsubscribe, or for help writing mail filters, visit settings.