jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/585871 )
Change subject: [tests] Change codeclimate maintainability rules ......................................................................
[tests] Change codeclimate maintainability rules
- use Python 3 for inspecting code duplication (we are deprecating Python 2) - method-complexity 5 -> 7 (up to 9 is almost acceptable) - max_threshold for similar codes 32 -> 40 nodes (don't report to many tests)
See: https://github.com/codeclimate/codeclimate-duplication
Change-Id: Iffe095574c9abe635f1f1126f06de5f7dad62352 --- M .codeclimate.yml 1 file changed, 9 insertions(+), 0 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/.codeclimate.yml b/.codeclimate.yml index 2b6b811..cb3deee 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -7,18 +7,27 @@ file-lines: config: threshold: 900 + method-complexity: + config: + threshold: 7 method-count: config: threshold: 30 method-lines: config: threshold: 30 + similar-code: + config: + threshold: 40
plugins: duplication: enabled: true config: count_threshold: 3 + languages: + python: + python_version: 3
exclude_patterns: - "docs/"
pywikibot-commits@lists.wikimedia.org