Completed
Pull Request — master (#149)
by Albert
05:19
created

Checkout Config

filter:
    excluded_paths:
        - var/*
        - 'app/*'
        - 'tests/*'
        - 'bin/*'
        - 'vendor/*'
        - 'web/bootstrap/*'
        - 'web/chartjs/*'
        - 'web/static/js/vendor/*'
        - '*.min.js'
build:
    project_setup:
        before:
            - composer self-update
            - wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v2.9.0/phpDocumentor.phar
    tests:
        override:
            -
                command: composer validate
            -
                command: ./vendor/bin/phpcs -s . --ignore=/home/scrutinizer/build/node_modules
            -
                command: php phpDocumentor.phar -d src -t docs/api --template="checkstyle"
            -
                command: ( [[ -z $(grep "error" docs/api/checkstyle.xml) ]] )
            -
                command: './vendor/bin/phpunit --coverage-clover=coverage.xml'
                coverage:
                    file: 'coverage.xml'
                    format: 'clover'

Repository Config

filter:
    excluded_paths:
        - 'app/*'
        - 'tests/*'
        - 'bin/*'
        - 'vendor/*'
        - 'web/bootstrap/*'
        - 'web/chartjs/*'
        - 'web/static/js/vendor/*'
        - '*.min.js'
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
        parameters_in_camelcaps: true
        parameter_doc_comments: true
        param_doc_comment_if_not_inferrable: true
        more_specific_types_in_doc_comments: true
    javascript:
        no_loop_var_assign: true
        no_else_return: true
        no_alert: true
        eqeqeq: true
coding_style:
    php:
        spaces:
            around_operators:
                additive: false
            other:
                after_type_cast: false
build:
    nodes:
        tests: true 
        analysis: 
            tests: 
                override: 
                    - php-scrutinizer-run