jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/513316 )
Change subject: [tests] Fix similar code checking in codeclimate
......................................................................
[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(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
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
https://gerrit.wikimedia.org/r/513316
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/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(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)