Skip to content
Snippets Groups Projects
.scrutinizer.yml 7.48 KiB
# .scrutinizer.yml
imports:
    - javascript
    - php

filter:
    excluded_paths:
        - build/*
        - dev/*
        - doc/*
        - test/*
    paths: 
        - htdocs/*
        - scripts/*
    
tools:
    # php_analyzer. Doc on https://scrutinizer-ci.com/docs/tools/php/php-analyzer/
    php_analyzer:
        enabled: true
        extensions:
            - php
        dependency_paths: 
            - htdocs/includes/
        filter:
            excluded_paths:
                - build/*
                - dev/*
                - doc/*
                - test/*
                - htdocs/includes/*
            paths:
                - htdocs/
                - scripts/
        config:
            parameter_reference_check:
                enabled:              true
            checkstyle:
                enabled:              false
                no_trailing_whitespace:  true
                naming:
                    enabled:              true
                    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)
            unreachable_code:
                enabled:              true
            check_access_control:
                enabled:              true
            typo_checks:
                enabled:              true
            check_variables:
                enabled:              true
            check_calls:
                enabled:              true
                too_many_arguments:   true
                missing_argument:     true
                argument_type_checks:  lenient # Allowed Values: "disabled", "lenient", "strict"
            suspicious_code:
                enabled:              true
                overriding_parameter:  false
                overriding_closure_use:  true
                parameter_closure_use_conflict:  true