build: environment: selenium: false memcached: false elasticsearch: false rabbitmq: false postgresql: false redis: false php: version: 7.2 ini: 'date.timezone': 'UTC' tests: override: - command: 'cd /home/scrutinizer/build' - command: './vendor/bin/phpunit' coverage: file: './build/coverage.xml' format: 'clover' - command: 'composer require phpstan/phpstan' - command: './vendor/bin/phpstan analyse -l max ./src/' filter: excluded_paths: - 'vendor/*' - 'tests/*' tools: php_analyzer: true php_mess_detector: true php_code_sniffer: config: standard: PSR2 filter: paths: ['src'] php_loc: enabled: true excluded_dirs: ['vendor', 'tests'] php_cpd: enabled: true excluded_dirs: ['vendor', 'tests'] checks: php: return_doc_comments: true return_doc_comment_if_not_inferrable: true parameter_doc_comments: true param_doc_comment_if_not_inferrable: true optional_parameters_at_the_end: true no_short_variable_names: minimum: '3' no_short_method_names: minimum: '3' no_long_variable_names: maximum: '20' no_goto: true newline_at_end_of_file: true more_specific_types_in_doc_comments: true encourage_single_quotes: true encourage_postdec_operator: true classes_in_camel_caps: true avoid_multiple_statements_on_same_line: true align_assignments: true code_rating: true
# language: php