From f179e75e729a255e3b779f0b1753624a1ac2b891 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 6 Jan 2018 13:56:03 +0100 Subject: [PATCH] updating CodeClimate configuration --- .codeclimate.yml | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 4bc3faeb..b930a046 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,5 +1,10 @@ --- -engines: +version: "2" +checks: + file-lines: + config: + threshold: 2000 +plugins: csslint: enabled: true duplication: @@ -31,11 +36,24 @@ engines: enabled: false CleanCode/StaticAccess: enabled: false -ratings: - paths: - - "css/privatebin.css" - - "css/bootstrap/privatebin.css" - - "js/privatebin.js" - - "lib/**.php" - - "index.php" -exclude_paths: [] + phpcodesniffer: + enabled: true + config: + standard: "PSR1,PSR2,PHPCS,Zend" + sonar-php: + enabled: true + config: + tests_patterns: + - tst/** +exclude_patterns: + - "cfg/" + - "css/" + - "!css/privatebin.css" + - "!css/noscript.css" + - "!css/bootstrap/privatebin.css" + - "js/" + - "!js/privatebin.js" + - "!js/common.js" + - "!js/test/" + - "vendor/" +