before_commands:
    - "git branch -D master || true"
    - "git checkout -b master"
    - "composer install"

build:
    environment:
        php:
            version: 7.4
    nodes:
        analysis:
            dependencies:
                before:
                    - "git branch -D master || true"
                    - "git checkout -b master"
            tests:
                override:
                    - php-scrutinizer-run

tools:
    external_code_coverage:
        timeout: 1200
    php_code_coverage:
        enabled: true
    php_code_sniffer:
        enabled: false
    php_cpd:
        enabled: true
        excluded_dirs: ["test", "vendor"]
    php_cs_fixer:
        enabled: false
    php_loc:
        enabled: true
        excluded_dirs: ["test", "vendor"]
    php_mess_detector:
        enabled: true
        filter:
            paths: ["src/*"]
    php_pdepend:
        enabled: true
        excluded_dirs: ["test", "vendor"]
    php_analyzer:
        enabled: true
        filter:
            paths: ["src/*", "test/*"]
    php_hhvm:
        enabled: true
        filter:
            paths: ["src/*", "test/*"]
    sensiolabs_security_checker: true
