Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
-
command: 'vendor/bin/phpspec run -f pretty'
coverage:
file: coverage/coverage.xml
format: clover
-
command: phpcs-run
use_website_config: true
- js-scrutinizer-run
- php-scrutinizer-run
node-with-auto-setup:
tests:
override:
- true
dependencies:
override:
- true
project_setup:
override:
- true
filter:
excluded_paths:
- 'spec/*'
- '*.min.js'
checks:
php:
simplify_boolean_return: true
remove_extra_empty_lines: true
properties_in_camelcaps: true
parameters_in_camelcaps: true
overriding_parameter: true
naming_conventions:
local_variable: '^[a-z][a-zA-Z0-9]*$'
abstract_class_name: ^Abstract|Factory$
utility_class_name: 'Utils?$'
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
property_name: '^[a-z][a-zA-Z0-9]*$'
method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$'
parameter_name: '^[a-z][a-zA-Z0-9]*$'
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
type_name: '^[A-Z][a-zA-Z0-9]*$'
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
isser_method_name: '^(?:is|has|should|may|supports)'
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
fix_line_ending: true
precedence_in_conditions: false
javascript: true
coding_style:
php:
spaces:
around_operators:
concatenation: true