jenkins-bot merged this change.

View Change

Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
[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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Idec34f3d3571d81ea9544dd20c398c580ead3625
Gerrit-Change-Number: 513316
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)