before_commands: - "composer install --prefer-dist" checks: php: code_rating: true duplication: false tools: php_sim: false php_changetracking: true sensiolabs_security_checker: true php_mess_detector: true php_code_sniffer: true php_analyzer: true php_code_coverage: false php_cpd: true php_pdepend: excluded_dirs: [vendor/*, src/Bundle/Server/Tests/*, src/Component/Server/Tests/*, src/Component/Client/Tests/*] filter: excluded_paths: [vendor/*, src/Bundle/Server/Tests/*, src/Component/Server/Tests/*, src/Component/Client/Tests/*] build_failure_conditions: - 'elements.rating(<= C).exists' # No classes/methods with a rating of C or worse - 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse - 'issues.label("coding-style").exists' # No coding style issues allowed - 'issues.label("coding-style").new.exists' # No new coding style issues allowed - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity - 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 9
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: true security_vulnerabilities: false no_exit: true use_self_instead_of_fqcn: true uppercase_constants: true return_doc_comments: true avoid_fixme_comments: true avoid_todo_comments: true check_method_contracts: verify_interface_like_constraints: true verify_documented_constraints: true verify_parent_constraints: true align_assignments: true avoid_unnecessary_concatenation: true filter: { } coding_style: php: { }