summaryrefslogtreecommitdiffstats
path: root/.codeclimate.yml
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2017-12-19 23:39:21 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2017-12-19 23:39:21 +0000
commit61aedf201c2c4bf0e5aa4db32e74f4d860b88593 (patch)
treebcf4f9a0cd8bc2daf38b2ff9f29bfcc1e5ed8968 /.codeclimate.yml
parentNew upstream version 1.8.0+dfsg (diff)
downloadnetdata-61aedf201c2c4bf0e5aa4db32e74f4d860b88593.tar.xz
netdata-61aedf201c2c4bf0e5aa4db32e74f4d860b88593.zip
New upstream version 1.9.0+dfsgupstream/1.9.0+dfsg
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 c3d4daa45..f53287ad7 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"
+