mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-14 17:08:41 +00:00
96d4a3ecf7
Due to historical reasons, the code is in subfolder "1". With SVN removal, we place the code back and remove the annoying "1" folder.
127 lines
2.9 KiB
YAML
127 lines
2.9 KiB
YAML
before_commands:
|
|
- "composer install --prefer-source"
|
|
|
|
tools:
|
|
# Code Coverage
|
|
external_code_coverage:
|
|
enabled: true
|
|
timeout: 300
|
|
filter:
|
|
excluded_paths:
|
|
- 'docs/*'
|
|
- 'examples/*'
|
|
- 'extras/*'
|
|
- 'test/*'
|
|
- 'vendor/*'
|
|
|
|
|
|
php_code_coverage:
|
|
enabled: false
|
|
test_command: phpunit
|
|
filter:
|
|
excluded_paths:
|
|
- 'docs/*'
|
|
- 'examples/*'
|
|
- 'extras/*'
|
|
- 'test/*'
|
|
- 'vendor/*'
|
|
|
|
|
|
# Code Sniffer
|
|
php_code_sniffer:
|
|
enabled: true
|
|
command: phpcs
|
|
config:
|
|
standard: PSR2
|
|
filter:
|
|
excluded_paths:
|
|
- 'docs/*'
|
|
- 'examples/*'
|
|
- 'extras/*'
|
|
- 'test/*'
|
|
- 'vendor/*'
|
|
|
|
|
|
# Copy/Paste Detector
|
|
php_cpd:
|
|
enabled: true
|
|
command: phpcpd
|
|
excluded_dirs:
|
|
- docs
|
|
- examples
|
|
- extras
|
|
- test
|
|
- vendor
|
|
|
|
|
|
# PHP CS Fixer (http://http://cs.sensiolabs.org/).
|
|
php_cs_fixer:
|
|
enabled: true
|
|
command: php-cs-fixer
|
|
config:
|
|
level: psr2
|
|
filter:
|
|
excluded_paths:
|
|
- 'docs/*'
|
|
- 'examples/*'
|
|
- 'extras/*'
|
|
- 'test/*'
|
|
- 'vendor/*'
|
|
|
|
|
|
# Analyzes the size and structure of a PHP project.
|
|
php_loc:
|
|
enabled: true
|
|
command: phploc
|
|
excluded_dirs:
|
|
- docs
|
|
- examples
|
|
- extras
|
|
- test
|
|
- vendor
|
|
|
|
|
|
# PHP Mess Detector (http://phpmd.org).
|
|
php_mess_detector:
|
|
enabled: true
|
|
command: phpmd
|
|
config:
|
|
rulesets:
|
|
- codesize
|
|
- unusedcode
|
|
- naming
|
|
- design
|
|
filter:
|
|
excluded_paths:
|
|
- 'docs/*'
|
|
- 'examples/*'
|
|
- 'extras/*'
|
|
- 'test/*'
|
|
- 'vendor/*'
|
|
|
|
|
|
# Analyzes the size and structure of a PHP project.
|
|
php_pdepend:
|
|
enabled: true
|
|
command: pdepend
|
|
excluded_dirs:
|
|
- docs
|
|
- examples
|
|
- extras
|
|
- test
|
|
- vendor
|
|
|
|
# Runs Scrutinizer's PHP Analyzer Tool
|
|
php_analyzer:
|
|
enabled: true
|
|
filter:
|
|
excluded_paths:
|
|
- 'docs/*'
|
|
- 'examples/*'
|
|
- 'extras/*'
|
|
- 'test/*'
|
|
- 'vendor/*'
|
|
|
|
# Security Advisory Checker
|
|
sensiolabs_security_checker: true
|