summaryrefslogtreecommitdiffstats
path: root/.codeclimate.yml
diff options
context:
space:
mode:
Diffstat (limited to '.codeclimate.yml')
-rw-r--r--.codeclimate.yml99
1 files changed, 64 insertions, 35 deletions
diff --git a/.codeclimate.yml b/.codeclimate.yml
index c3d4daa4..f53287ad 100644
--- a/.codeclimate.yml
+++ b/.codeclimate.yml
@@ -1,15 +1,53 @@
----
-engines:
+version: "2"
+checks:
+ argument-count:
+ enabled: false
+ config:
+ threshold: 10
+ complex-logic:
+ enabled: false
+ config:
+ threshold: 10
+ file-lines:
+ enabled: false
+ config:
+ threshold: 5000
+ method-complexity:
+ enabled: false
+ config:
+ threshold: 20
+ method-count:
+ enabled: false
+ config:
+ threshold: 50
+ method-lines:
+ enabled: false
+ config:
+ threshold: 250
+ nested-control-flow:
+ enabled: false
+ config:
+ threshold: 4
+ return-statements:
+ enabled: false
+ config:
+ threshold: 4
+ similar-code:
+ enabled: false
+ identical-code:
+ enabled: false
+plugins:
csslint:
enabled: true
duplication:
- enabled: true
+ enabled: false
config:
languages:
- - ruby
- - javascript
- - python
- - php
+ - javascript:
+ mass_threshold: 100
+ - python:
+ python_version: 3
+ mass_threshold: 100
checks:
Similar code:
enabled: false
@@ -41,31 +79,22 @@ engines:
checks:
Complexity:
enabled: false
-ratings:
- paths:
- - "**.css"
- - "**.inc"
- - "**.js"
- - "**.jsx"
- - "**.module"
- - "**.php"
- - "**.py"
- - "**.rb"
-exclude_paths:
-- .gitignore
-- conf.d/
-- hooks/
-- tests/
-- m4/
-- web/css/
-- web/lib/
-- web/fonts/
-- web/old/
-- python.d/python_modules/pyyaml2/
-- python.d/python_modules/pyyaml3/
-- python.d/python_modules/urllib3/
-- node.d/node_modules/lib/
-- node.d/node_modules/asn1-ber.js
-- node.d/node_modules/extend.js
-- node.d/node_modules/pixl-xml.js
-- node.d/node_modules/net-snmp.js
+exclude_patterns:
+ - ".gitignore"
+ - "conf.d/"
+ - "hooks/"
+ - "tests/"
+ - "m4/"
+ - "web/css/"
+ - "web/lib/"
+ - "web/fonts/"
+ - "web/old/"
+ - "python.d/python_modules/pyyaml2/"
+ - "python.d/python_modules/pyyaml3/"
+ - "python.d/python_modules/urllib3/"
+ - "node.d/node_modules/lib/"
+ - "node.d/node_modules/asn1-ber.js"
+ - "node.d/node_modules/extend.js"
+ - "node.d/node_modules/pixl-xml.js"
+ - "node.d/node_modules/net-snmp.js"
+