Completed
Push — development ( cfd391...deed4d )
by Andrij
12:03
created

Repository Config

before_commands:
    - "composer update --no-dev"
    
filter:
    excluded_paths:
        - 'tests/*'
        - '*/tests/*'
        - 'system/*'
        - 'application/third_party/*'
        - "hooks/*"
        - "application/libraries/elfinder/*"
        - "js/**"
        - "application/core/*"
        - "application/modules/translator/assets/js/*"
        - "application/modules/admin_menu/menus/*"
        - "*/generated-classes/Base/*"
        - "*/generated-classes/Map/*"
        - "*/generated-classes/**/Base/*"
        - "*/generated-classes/**/Map/*"
        - "Models/Base/*"
        - "Models/Map/*"
        - "application/modules/banners/assets/js/cycle.js"
        - "templates/*"
        - "application/modules/egoods/assets/js/epub/*"
        - "application/modules/sitetest/*"
        - "application/modules/documentation/*"
        - "application/modules/my_module_frame/*"
        - "application/modules/egoods/*"
        - "application/modules/facebook_store/*"
        - "application/modules/gallery/assets/js/jquery.mousewheel-3.0.4.pack.js"
        - "application/modules/mod_stats/assets/js/nv.d3.js"
        - "application/modules/mod_stats/assets/js/d3.v3.js"
        - "application/modules/translate/**"
        - "application/modules/shop/obf/**"
        - "*/module_info.php"
        - "*/vendor/*"
        - "uploads_site/*"
        - "application/modules/install/views/*"
        - "application/views/*"
        - "application/cms_bridge.php"
        - "application/config/*"

checks:
    php:
        fix_php_opening_tag: false
        remove_php_closing_tag: true
        one_class_per_file: false
        side_effects_or_types: false
        no_mixed_inline_html: false
        require_braces_around_control_structures: false
        php5_style_constructor: true
        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: true
        psr2_switch_declaration: false
        psr2_control_structure_declaration: false
        avoid_superglobals: false
        security_vulnerabilities: false
        no_exit: false
        use_self_instead_of_fqcn: true
        uppercase_constants: true
        simplify_boolean_return: true
        fix_use_statements:
            remove_unused: true
            preserve_multiple: false
            preserve_blanklines: false
            order_alphabetically: false
        remove_extra_empty_lines: true
        no_goto: true
        avoid_multiple_statements_on_same_line: true
        avoid_unnecessary_concatenation: true
        avoid_length_functions_in_loops: true
        encourage_shallow_comparison: false
        custom_coding_standard:
            git_repository: 'https://github.com/imagecms/CodingStandard'
            ruleset_path: ImageCMS/ruleset.xml
        return_doc_comments: true
        return_doc_comment_if_not_inferrable: true
        parameter_doc_comments: true
        param_doc_comment_if_not_inferrable: true
        more_specific_types_in_doc_comments: true
        prefer_while_loop_over_for_loop: true
        coding_standard:
            name: Drupal
        avoid_perl_style_comments: true

tools:
    php_sim:
        min_mass: 100
    php_cs_fixer: 
        enabled: true
    php_mess_detector:
        enabled: true