Failed Conditions
Push — master ( 7fced6...1d3aa7 )
by Çağrı
47:14 queued 42:14
created

Checkout Config

checks:
  php:
    code_rating: true
    check_method_contracts:
      verify_interface_like_constraints: true
      verify_documented_constraints: true
      verify_parent_constraints: true
    duplication: true
    more_specific_types_in_doc_comments: true
    no_goto: true
    no_long_variable_names:
      maximum: '20'
    no_short_method_names:
      minimum: '2'
    no_short_variable_names:
      minimum: '2'
    overriding_parameter: true
    param_doc_comment_if_not_inferrable: true
    parameter_doc_comments: true
    return_doc_comment_if_not_inferrable: true
    return_doc_comments: true
    simplify_boolean_return: true
build:
  environment:
    php:
      version: 7.1
  tests:
    override:
      - command: vendor/bin/phpunit
        coverage:
          file: build/logs/clover.xml
          format: clover
tools:
  php_analyzer: true
  php_cs_fixer:
    config:
      level: psr2
      fixers:
        unused_use: true
        phpdoc_params: true
        php_closing_tag: true
  php_loc: true
  php_mess_detector: true
  php_pdepend: true
  php_sim: true
  sensiolabs_security_checker: true
filter:
  excluded_paths:
    - tests/*
    - config/*
    - docs/*
build_failure_conditions:
  - elements.rating(<= D).exists
  - elements.rating(<= C).new.count > 2
  - issues.severity(>= MAJOR).exists
  - 'project.metric("scrutinizer.quality", < 6)'

Repository Config

build:
    nodes:
        analysis:
            project_setup:
                override:
                    - 'true'
            tests:
                override:
                    - php-scrutinizer-run
            environment:
                node:
                    version: 6.0.0
filter:
    excluded_paths:
        - 'tests/*'
        - 'docs/*'
        - 'config/*'
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: false
        fix_line_ending: true
        check_method_contracts:
            verify_interface_like_constraints: true
            verify_documented_constraints: true
            verify_parent_constraints: true

coding_style:
    php:
        spaces:
            around_operators:
                bitwise: false
                concatenation: true
            other:
                after_type_cast: false