Completed
Push — master ( 697142...45b6a0 )
by Zlatin
10s
created

Checkout Config

#checks:
#    php:
#        code_rating: true
#        duplication: true
#filter:
#    excluded_paths:
#        - vendor/*
#        - tests/*     
#tools:
#    external_code_coverage:
#        timeout: 600
#
#build:
#    environment:
#        php: '5.6.0'

before_commands:
    - "composer install --prefer-source"

tools:
    external_code_coverage:
        enabled: true
        timeout: 300
        filter:
            excluded_paths:
                - 'tests/*'
                - 'vendor/*'

    php_code_coverage:
        enabled:              false
        filter:
            excluded_paths:
                - 'tests/*'
                - 'vendor/*'

    php_code_sniffer:
        enabled:              true
        config:
            standard:         PSR2
            sniffs:
                generic:
                    files:
                        one_class_per_file_sniff: false
        filter:
            excluded_paths:
                - 'tests/*'
                - 'vendor/*'

    # Copy/Paste Detector
    php_cpd:
        enabled:              true
        excluded_dirs:
            - tests
            - vendor

    # PHP CS Fixer (http://http://cs.sensiolabs.org/).
    php_cs_fixer:
        enabled:              true
        config:
            level:            psr4
        filter:
            excluded_paths:
                - 'tests/*'
                - 'vendor/*'

    # Analyzes the size and structure of a PHP project.
    php_loc:
        enabled:              true
        excluded_dirs:
            - tests
            - vendor

    # PHP Mess Detector (http://phpmd.org).
    php_mess_detector:
        enabled:              true
        config:
            rulesets:
                - codesize
                - unusedcode
                - naming
                - design
            naming_rules:
                short_variable: { minimum: 2 }
        filter:
            excluded_paths:
                - 'tests/*'
                - 'vendor/*'

    # Analyzes the size and structure of a PHP project.
    php_pdepend:
        enabled:              true
        excluded_dirs:
            - tests
            - vendor

    # Runs Scrutinizer's PHP Analyzer Tool
    # https://scrutinizer-ci.com/docs/tools/php/php-analyzer/config_reference
    php_analyzer:
        enabled:              true
        config:
            checkstyle:
                enabled: true
                naming:
                    enabled: true
                    property_name: ^[_a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps
                    method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9_]*$ #Allow underscores & caps
                    parameter_name: ^[a-z][a-zA-Z0-9_]*$ # Allow underscores
                    local_variable: ^[a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps
                    exception_name: ^[a-zA-Z][a-zA-Z0-9]*Exception$
                    isser_method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9]*$ #Allow underscores & caps
        filter:
            excluded_paths:
                - 'tests/*'
                - 'vendor/*'

    # Security Advisory Checker
    sensiolabs_security_checker: true

Repository Config

filter:
    excluded_paths:
        - 'tests/*'
checks:
    php: true
coding_style:
    php:
        spaces:
            general:
                linefeed_character: newline
        braces:
            classes_functions:
                class: undefined
                function: undefined
                closure: undefined
            if:
                opening: undefined
            for:
                opening: undefined
            while:
                opening: undefined
            do_while:
                opening: undefined
            switch:
                opening: undefined
            try:
                opening: undefined
        upper_lower_casing:
            keywords:
                general: undefined
            constants:
                true_false_null: undefined