Completed
Push — master ( b16e97...cfa47d )
by Thomas
07:53
created

Checkout Config

filter:
    paths:
        - 'htdocs/*'
        - 'local/*'
    excluded_paths:
        - 'bin/*'
        - 'doc/*'
        - 'htdocs/okapi/*'
        - 'htdocs/resource2/tinymce/*'
        - 'htdocs/templates2/*'
    dependency_paths:
        - 'htdocs/vendor/*'

checks:
    php:
        fix_php_opening_tag: false
        remove_php_closing_tag: false
        avoid_closing_tag: true
        one_class_per_file: true
        side_effects_or_types: true
        no_mixed_inline_html: false
        require_braces_around_control_structures: true
        php5_style_constructor: true
        no_global_keyword: true
        avoid_usage_of_logical_operators: true
        psr2_class_declaration: true
        no_underscore_prefix_in_properties: true
        no_underscore_prefix_in_methods: true
        blank_line_after_namespace_declaration: true
        single_namespace_per_use: true
        psr2_switch_declaration: true
        psr2_control_structure_declaration: true
        avoid_superglobals: false
        security_vulnerabilities: true
        no_exit: false
        uppercase_constants: true
        return_doc_comments: true
        remove_extra_empty_lines: true
        properties_in_camelcaps: true
        prefer_while_loop_over_for_loop: true
        phpunit_assertions: true
        parameter_doc_comments: true
        optional_parameters_at_the_end: true
        no_long_variable_names:
            maximum: '20'
        no_goto: true
        function_in_camel_caps: true
        fix_use_statements:
            remove_unused: true
            preserve_multiple: false
            preserve_blanklines: false
            order_alphabetically: true
        encourage_single_quotes: true
        encourage_postdec_operator: true
        classes_in_camel_caps: true
        avoid_multiple_statements_on_same_line: true
        avoid_fixme_comments: true

    javascript:
        valid_typeof: true
        yoda:
            setting: 'Disallow Yoda Conditions'
        wrap_iife: true
        no_use_before_define: true
        no_unused_vars: true
        no_unreachable: true
        no_undef: true
        no_trailing_spaces: true
        no_space_before_semi: true
        no_shadow: true
        no_self_compare: true
        no_script_url: true
        no_return_assign: true
        no_reserved_keys: true
        no_redeclare: true
        no_mixed_spaces_and_tabs: true
        no_loop_func: true
        no_irregular_whitespace: true

coding_style:
    php:
        spaces:
            around_operators:
                concatenation: false
            ternary_operator:
                before_condition: true
                after_condition: true
                before_alternative: true
                after_alternative: true
            other:
                after_type_cast: false
        braces:
            classes_functions:
                class: new-line
                function: new-line
                closure: end-of-line
            if:
                opening: end-of-line
            for:
                opening: end-of-line
            while:
                opening: end-of-line
            do_while:
                opening: end-of-line
            switch:
                opening: end-of-line
            try:
                opening: end-of-line
        upper_lower_casing:
            keywords:
                general: lower
            constants:
                true_false_null: lower

tools:
    php_code_sniffer:
        config:
            standard: "PSR2"
    php_cs_fixer:
        enabled: true
        config: { level: psr2 }

Repository Config

filter:
    excluded_paths:
        - 'tests/*'
        - 'bin/*'
        - '*.tpl.php'
checks:
    php:
        fix_php_opening_tag: false
        remove_php_closing_tag: false
        one_class_per_file: false
        side_effects_or_types: false
        no_mixed_inline_html: false
        require_braces_around_control_structures: false
        php5_style_constructor: false
        no_global_keyword: false
        avoid_usage_of_logical_operators: false
        psr2_class_declaration: false
        no_underscore_prefix_in_properties: false
        no_underscore_prefix_in_methods: false
        blank_line_after_namespace_declaration: false
        single_namespace_per_use: false
        psr2_switch_declaration: false
        psr2_control_structure_declaration: false
        avoid_superglobals: false
        security_vulnerabilities: false
        no_exit: false
    javascript: true
coding_style:
    php:
        spaces:
            around_operators:
                concatenation: true
            other:
                after_type_cast: false