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/*
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

@ -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/*'
Loading…
Cancel
Save