Checkout Config
inherit: true
before_commands:
- "composer update --no-interaction --prefer-source"
tools:
external_code_coverage: true
php_code_coverage: true
php_code_sniffer:
enabled: true
config:
standard: PSR2
filter:
paths: ["src/*", "test/*"]
php_cpd:
enabled: true
excluded_dirs: ["test", "vendor"]
php_cs_fixer:
enabled: true
config:
level: all
filter:
paths: ["src/*", "test/*"]
php_loc:
enabled: true
excluded_dirs: ["test", "vendor"]
php_mess_detector:
enabled: true
filter:
paths: ["src/*"]
php_pdepend:
enabled: true
excluded_dirs: ["test", "vendor"]
php_analyzer: true
php_analyzer:
filter:
paths: ["src/*", "test/*"]
sensiolabs_security_checker: true
Repository Config
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
one_class_per_file: false
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: false
no_global_keyword: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: false
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: false
single_namespace_per_use: false
psr2_switch_declaration: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: false
no_exit: false
filter: { }
coding_style:
php:
spaces:
general:
linefeed_character: newline
braces:
classes_functions:
class: undefined
function: undefined
closure: undefined
if:
opening: undefined
for:
opening: undefined
while:
opening: undefined
do_while:
opening: undefined
switch:
opening: undefined
try:
opening: undefined
upper_lower_casing:
keywords:
general: undefined
constants:
true_false_null: undefined