Passed
Push — master ( 56185b...6f8879 )
by P.R.
04:24
created

Checkout Config

tools:
  php_analyzer:
    config:
      metrics_coupling:
        stable_code:
          namespace_prefixes:
            - SetBased\Stratum\MySql\Wrapper

build:
  environment:
    mysql: 5.7

  dependencies:
    override:
      - composer install --no-interaction

  tests:
    before:
      - mysql --version
      - mysql -u root -e "set global binlog_format = 'row';"
      - mysql -u root -e "set global log_bin_trust_function_creators = 1;"

    override:
      - command: './bin/phing unit'
        coverage:
          file:   'test/coverage.xml'
          format: 'php-clover'

Global Config

filter:
    excluded_paths:
        - 'test/*'
checks:
    javascript: true
    php: true

coding_style:
    php:
        indentation:
            general:
                size: 2
        spaces:
            around_operators:
                equality: false
        braces:
            classes_functions:
                class: new-line
                function: new-line
                closure: new-line
            if:
                opening: new-line
                always: false
                else_on_new_line: true
            for:
                opening: new-line
                always: false
            while:
                opening: new-line
                always: false
            do_while:
                opening: new-line
                always: false
                while_on_new_line: true
            switch:
                opening: new-line
            try:
                opening: new-line
                catch_on_new_line: true
                finally_on_new_line: true
        upper_lower_casing:
            keywords:
                general: lower
            constants:
                true_false_null: lower

build:
    nodes:
        tests: true
        analysis:
            tests:
                override:
                    - php-scrutinizer-run
                    - command: phpcs-run
                      use_website_config: true