Checkout Config
filter:
excluded_paths:
- tests/*
checks:
php:
code_rating: true
duplication: false
unused_methods: true
unused_parameters: true
argument_type_checks: true
verify_property_names: true
method_calls_on_non_object: false
fix_doc_comments: true
instanceof_class_exists: true
catch_class_exists: true
assignment_of_null_return: false
use_statement_alias_conflict: false
simplify_boolean_return: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
remove_extra_empty_lines: true
remove_php_closing_tag:
parameters_in_camelcaps: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
properties_in_camelcaps: false
no_long_variable_names:
maximum: '20'
no_goto: true
more_specific_types_in_doc_comments: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: false
fix_line_ending: true
fix_php_opening_tag: true
javascript: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
environment:
node:
version: 6.0.0
checks:
php:
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)'
filter: { }
coding_style:
php:
spaces:
around_operators:
concatenation: true
other:
after_type_cast: false