Skip to content

Commit

Permalink
[UPD] scruninizer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robmachado committed May 28, 2015
1 parent 110d6a2 commit f160d1d
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 25 deletions.
186 changes: 162 additions & 24 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,168 @@
filter:
excluded_paths: [vendor/*, exemplos/*, tests/*, libs/External/*]
paths: [libs/*]
build:
environment:
php: '5.6.0'

before_commands:
- "composer install --prefer-source"

tools:
php_code_coverage:
external_code_coverage:
enabled: true
test_command: phpunit --colors --verbose
php_analyzer: false
php_changetracking: true
timeout: 300
filter:
excluded_paths:
- 'certs/*'
- 'config/*'
- 'examplos/*'
- 'images/*'
- 'install/*'
- 'libs/extras/*'
- 'schemes/*'
- 'test/*'
- 'vendor/*'

php_code_coverage:
enabled: false
filter:
excluded_paths:
- 'certs/*'
- 'config/*'
- 'examplos/*'
- 'images/*'
- 'install/*'
- 'libs/extras/*'
- 'schemes/*'
- 'test/*'
- 'vendor/*'

php_code_sniffer:
enabled: true
config:
standard: PSR2
php_mess_detector: true
php_pdepend: true
php_sim: true
standard: PSR2
sniffs:
generic:
files:
one_class_per_file_sniff: false
filter:
excluded_paths:
- 'certs/*'
- 'config/*'
- 'examplos/*'
- 'images/*'
- 'install/*'
- 'libs/extras/*'
- 'schemes/*'
- 'test/*'
- 'vendor/*'

build:
dependencies:
before:
- "sudo composer self-update"
override:
- "composer install --no-interaction --prefer-source"
tests:
override:
-
command: 'phpunit --coverage-clover=clover.xml'
coverage:
file: 'clover.xml'
format: 'php-clover'
# Copy/Paste Detector
php_cpd:
enabled: true
excluded_dirs:
- certs
- config
- examplos
- images
- install
- libs/extras
- schemes
- test
- vendor

# PHP CS Fixer (http://http://cs.sensiolabs.org/).
php_cs_fixer:
enabled: true
config:
level: psr2
filter:
excluded_paths:
- 'certs/*'
- 'config/*'
- 'examplos/*'
- 'images/*'
- 'install/*'
- 'libs/extras/*'
- 'schemes/*'
- 'test/*'
- 'vendor/*'

# Analyzes the size and structure of a PHP project.
php_loc:
enabled: true
excluded_dirs:
- certs
- config
- examplos
- images
- install
- libs/extras
- schemes
- test
- vendor

# PHP Mess Detector (http://phpmd.org).
php_mess_detector:
enabled: true
config:
rulesets:
- codesize
- unusedcode
- naming
- design
naming_rules:
short_variable: { minimum: 2 }
filter:
excluded_paths:
- 'certs/*'
- 'config/*'
- 'examplos/*'
- 'images/*'
- 'install/*'
- 'libs/extras/*'
- 'schemes/*'
- 'test/*'
- 'vendor/*'

# Analyzes the size and structure of a PHP project.
php_pdepend:
enabled: true
excluded_dirs:
- certs
- config
- examplos
- images
- install
- libs/extras
- schemes
- test
- vendor

# Runs Scrutinizer's PHP Analyzer Tool
# https://scrutinizer-ci.com/docs/tools/php/php-analyzer/config_reference
php_analyzer:
enabled: true
config:
checkstyle:
enabled: true
naming:
enabled: true
property_name: ^[_a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps
method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9_]*$ #Allow underscores & caps
parameter_name: ^[a-z][a-zA-Z0-9_]*$ # Allow underscores
local_variable: ^[a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps
exception_name: ^[a-zA-Z][a-zA-Z0-9]*Exception$
isser_method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9]*$ #Allow underscores & caps
filter:
excluded_paths:
- 'certs/*'
- 'config/*'
- 'examplos/*'
- 'images/*'
- 'install/*'
- 'libs/extras/*'
- 'schemes/*'
- 'test/*'
- 'vendor/*'

# Security Advisory Checker
sensiolabs_security_checker: true
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ php:
- 5.3
- 5.4
- 5.5
- 5.6

before_script:
- "composer self-update"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0-pre-alpha
4.0-dev
2 changes: 2 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<directory>./vendor</directory>
<directory>./certs</directory>
<directory>./config</directory>
<directory>./images</directory>
<directory>./install</directory>
<directory>./exemplos</directory>
<directory>./schemes</directory>
<directory>./tests</directory>
Expand Down

0 comments on commit f160d1d

Please sign in to comment.