build: nodes: analysis: project_setup: override: - 'true' tests: override: - php-scrutinizer-run - command: phpcs-run use_website_config: true filter: excluded_paths: - 'tests/*' checks: php: true coding_style: php: indentation: general: use_tabs: true spaces: around_operators: concatenation: true
build: nodes: analysis: tests: override: - php-scrutinizer-run build_failure_conditions: - 'issues.new.exists' filter: paths: - 'library/*' - 'src/*' excluded_paths: - 'vendor/*' before_commands: - 'git clone https://github.com/aik099/CodingStandard.git ../CodingStandard/' - 'git --git-dir="../CodingStandard/.git" rev-parse HEAD' tools: php_analyzer: config: parameter_reference_check: { enabled: true } checkstyle: { enabled: false, no_trailing_whitespace: false, naming: { enabled: false } } unreachable_code: { enabled: true } check_access_control: { enabled: true } typo_checks: { enabled: true } check_variables: { enabled: true } check_calls: { enabled: true, too_many_arguments: true, missing_argument: true, argument_type_checks: lenient } suspicious_code: { enabled: false } dead_assignments: { enabled: true } verify_php_doc_comments: { enabled: false } loops_must_use_braces: { enabled: false } check_usage_context: { enabled: true, foreach: { value_as_reference: true, traversable: true } } simplify_boolean_return: { enabled: true } phpunit_checks: { enabled: true } reflection_checks: { enabled: true } precedence_checks: { enabled: true, assignment_in_condition: true, comparison_of_bit_result: true } basic_semantic_checks: { enabled: true } unused_code: { enabled: true } deprecation_checks: { enabled: true } useless_function_calls: { enabled: true } metrics_lack_of_cohesion_methods: { enabled: true } metrics_coupling: { enabled: true, stable_code: { namespace_prefixes: { }, classes: { } } } doctrine_parameter_binding: { enabled: false } doctrine_entity_manager_injection: { enabled: false } symfony_request_injection: { enabled: false } doc_comment_fixes: { enabled: false } reflection_fixes: { enabled: false } use_statement_fixes: { enabled: true, remove_unused: true, preserve_multiple: false, preserve_blanklines: false, order_alphabetically: false } php_code_sniffer: config: ruleset: ../CodingStandard/CodingStandard php_cpd: true php_pdepend: excluded_dirs: - vendor php_changetracking: true external_code_coverage: true checks: php: verify_property_names: true verify_argument_usable_as_reference: true verify_access_scope_valid: true variable_existence: true useless_calls: true use_self_instead_of_fqcn: true unused_variables: true unused_properties: true unused_parameters: true unused_methods: true unreachable_code: true too_many_arguments: true sql_injection_vulnerabilities: true single_namespace_per_use: true simplify_boolean_return: true security_vulnerabilities: true return_in_constructor: true require_scope_for_properties: false property_assignments: true precedence_mistakes: true precedence_in_conditions: true phpunit_assertions: true parameter_non_unique: true overriding_private_members: true overriding_parameter: false no_unnecessary_if: true no_unnecessary_final_modifier: true no_short_variable_names: minimum: '3' no_short_open_tag: true no_short_method_names: minimum: '3' no_non_implemented_abstract_methods: true no_property_on_interface: false no_goto: true no_global_keyword: true no_eval: true no_exit: true no_empty_statements: true no_debug_code: true more_specific_types_in_doc_comments: true missing_arguments: true method_calls_on_non_object: true instanceof_class_exists: true foreach_usable_as_reference: true foreach_traversable: true fix_use_statements: remove_unused: true preserve_multiple: false preserve_blanklines: false order_alphabetically: true fix_doc_comments: true encourage_postdec_operator: true duplication: true deprecated_code_usage: true deadlock_detection_in_loops: true comparison_always_same_result: true code_rating: true closure_use_not_conflicting: true closure_use_modifiable: true check_method_contracts: verify_interface_like_constraints: true verify_documented_constraints: true verify_parent_constraints: true catch_class_exists: true call_to_parent_method: true avoid_multiple_statements_on_same_line: true avoid_length_functions_in_loops: false avoid_duplicate_types: true avoid_corrupting_byteorder_marks: true avoid_conflicting_incrementers: true avoid_aliased_php_functions: true assignment_of_null_return: true argument_type_checks: true