build: nodes: php-scrutinizer-run: project_setup: override: true tests: override: [php-scrutinizer-run] environment: php: version: 7.1 dependencies: override: - command: 'composer install --prefer-dist --no-dev --no-scripts' tests: override: true project_setup: override: true filter: excluded_paths: - build/* - test/unit/* - vendor/* tools: php_cpd: false php_pdepend: true php_analyzer: true php_sim: true php_changetracking: true php_mess_detector: true php_code_sniffer: true sensiolabs_security_checker: true php_code_coverage: true php_pdepend: excluded_dirs: [vendor, build, tests] external_code_coverage: timeout: 1600 runs: 1 changetracking: bug_patterns: ["\bfix(?:es|ed)?\b"] feature_patterns: ["\badd(?:s|ed)?\b", "\bimplement(?:s|ed)?\b"] build_failure_conditions: # No new critical issue is introduced (existing ones are tolerated) - 'issues.severity(>= CRITICAL).new.exists' # Code Coverage drops below 60% - 'project.metric("scrutinizer.test_coverage", < 0.45)' # Code Coverage decreased from previous inspection by more than 1% - 'project.metric_change("scrutinizer.test_coverage", < -0.01)' checks: php: simplify_boolean_return: true return_doc_comments: true return_doc_comment_if_not_inferrable: true remove_extra_empty_lines: true properties_in_camelcaps: true phpunit_assertions: true parameters_in_camelcaps: true parameter_doc_comments: true param_doc_comment_if_not_inferrable: true overriding_parameter: true no_short_variable_names: minimum: '3' no_short_method_names: minimum: '3' no_long_variable_names: maximum: '20' no_goto: 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)' more_specific_types_in_doc_comments: true fix_use_statements: remove_unused: true preserve_multiple: false preserve_blanklines: false order_alphabetically: true fix_line_ending: true check_method_contracts: verify_interface_like_constraints: true verify_documented_constraints: true verify_parent_constraints: true javascript: true
# language: php