Add codeclimate.yml, update scrutinizer + styleci

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 1045d84870
commit f2d16733bb
  1. 42
      .codeclimate.yml
  2. 10
      .scrutinizer.yml
  3. 15
      .styleci.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/*'

@ -44,7 +44,7 @@ filter:
- main/auth/cas/lib/CAS/* - main/auth/cas/lib/CAS/*
checks: checks:
php: php:
code_rating: true code_rating: true
duplication: true duplication: true
fix_php_opening_tag: false fix_php_opening_tag: false
@ -107,7 +107,7 @@ coding_style:
general: undefined general: undefined
constants: constants:
true_false_null: undefined true_false_null: undefined
tools: tools:
php_mess_detector: php_mess_detector:
enabled: true enabled: true
@ -122,7 +122,7 @@ tools:
config: config:
rulesets: rulesets:
- codesize - codesize
php_analyzer: php_analyzer:
enabled: true enabled: true
filter: filter:
@ -148,7 +148,7 @@ tools:
suffixes: suffixes:
- php - php
excluded_dirs: excluded_dirs:
- vendor - 'vendor'
- Tests - 'tests/*'
enabled: true enabled: true
php_code_coverage: true php_code_coverage: true

@ -12,15 +12,11 @@ enabled:
finder: finder:
exclude: exclude:
- 'tests/*'
- 'main/img/*'
- 'main/lang/*'
- 'app/cache/*' - 'app/cache/*'
- 'app/logs/*' - 'app/logs/*'
- 'web/*'
- 'vendor/*
- 'main/admin/db.php'
- 'app/Migrations/*' - 'app/Migrations/*'
- 'main/admin/db.php'
- 'main/auth/cas/lib/CAS/*'
- 'main/inc/lib/browser/*' - 'main/inc/lib/browser/*'
- 'main/inc/lib/elfinder/*' - 'main/inc/lib/elfinder/*'
- 'main/inc/lib/freemindflashbrowser/*' - 'main/inc/lib/freemindflashbrowser/*'
@ -35,5 +31,8 @@ finder:
- 'main/inc/lib/swfobject/*' - 'main/inc/lib/swfobject/*'
- 'main/inc/lib/wami-recorder/*' - 'main/inc/lib/wami-recorder/*'
- 'main/inc/lib/xajax/*' - 'main/inc/lib/xajax/*'
-' main/auth/cas/lib/CAS/*' - 'main/img/*'
- 'main/lang/*'
- 'tests/*'
- 'vendor/*'
- 'web/*'
Loading…
Cancel
Save