From f2d16733bb888b83ed29c703725db1ff8e64ecf0 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 14 Mar 2017 08:26:30 +0100 Subject: [PATCH] Add codeclimate.yml, update scrutinizer + styleci --- .codeclimate.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ .scrutinizer.yml | 10 +++++----- .styleci.yml | 15 +++++++-------- 3 files changed, 54 insertions(+), 13 deletions(-) create mode 100644 .codeclimate.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000000..103ee27802 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,42 @@ +engines: + phpcodesniffer: + enabled: true + config: + standard: "PSR1,PSR2" + phpmd: + enabled: true + duplication: + enabled: true + config: + languages: + - php + +ratings: + paths: + - '*.php' + +exclude_paths: +- 'app/cache/*' +- 'app/logs/*' +- 'app/Migrations/*' +- 'main/admin/db.php' +- 'main/auth/cas/lib/CAS/*' +- 'main/inc/lib/browser/*' +- 'main/inc/lib/elfinder/*' +- 'main/inc/lib/freemindflashbrowser/*' +- 'main/inc/lib/kses-0.2.2/*' +- 'main/inc/lib/mimetex/*' +- 'main/inc/lib/nanogong/*' +- 'main/inc/lib/pclzip/*' +- 'main/inc/lib/pear/*' +- 'main/inc/lib/phpmailer/*' +- 'main/inc/lib/phpseclib/*' +- 'main/inc/lib/svg-edit/*' +- 'main/inc/lib/swfobject/*' +- 'main/inc/lib/wami-recorder/*' +- 'main/inc/lib/xajax/*' +- 'main/img/*' +- 'main/lang/*' +- 'tests/*' +- 'vendor/*' +- 'web/*' \ No newline at end of file diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 1becc36ea0..e808a9aece 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -44,7 +44,7 @@ filter: - main/auth/cas/lib/CAS/* checks: - php: + php: code_rating: true duplication: true fix_php_opening_tag: false @@ -107,7 +107,7 @@ coding_style: general: undefined constants: true_false_null: undefined - + tools: php_mess_detector: enabled: true @@ -122,7 +122,7 @@ tools: config: rulesets: - codesize - + php_analyzer: enabled: true filter: @@ -148,7 +148,7 @@ tools: suffixes: - php excluded_dirs: - - vendor - - Tests + - 'vendor' + - 'tests/*' enabled: true php_code_coverage: true diff --git a/.styleci.yml b/.styleci.yml index 96f98afade..214b85fb11 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -12,15 +12,11 @@ enabled: finder: exclude: - - 'tests/*' - - 'main/img/*' - - 'main/lang/*' - 'app/cache/*' - 'app/logs/*' - - 'web/*' - - 'vendor/* - - 'main/admin/db.php' - 'app/Migrations/*' + - 'main/admin/db.php' + - 'main/auth/cas/lib/CAS/*' - 'main/inc/lib/browser/*' - 'main/inc/lib/elfinder/*' - 'main/inc/lib/freemindflashbrowser/*' @@ -35,5 +31,8 @@ finder: - 'main/inc/lib/swfobject/*' - 'main/inc/lib/wami-recorder/*' - 'main/inc/lib/xajax/*' - -' main/auth/cas/lib/CAS/*' - + - 'main/img/*' + - 'main/lang/*' + - 'tests/*' + - 'vendor/*' + - 'web/*' \ No newline at end of file