Passed
Push — 3.x ( ff4171...504ae3 )
by Jerome
26:57 queued 12s
created

Repository Config

filter:
    excluded_paths:
            - '*/.scripts/*'
            - '.scripts/*'
            - '*/vendors/*'
            - '*/engine/lib/deprecated*'
            - '*/engine/lib/upgrades/*'
            - '*/engine/schema/*'
            - 'engine/schema/migrations/*'
            - '*/vendor/*'
            - '*/tests/*'
            - 'docs/*'
            - '*/docs/*'
            - '*/bower_components/*'
            - '*/grunt/*'
            - '*/docs/*'
            - '*/install/*'
checks:
    php:
        verify_argument_usable_as_reference: true
        simplify_boolean_return: true
        return_doc_comments: true
        return_doc_comment_if_not_inferrable: true
        remove_extra_empty_lines: true
        parameter_doc_comments: true
        param_doc_comment_if_not_inferrable: true
        overriding_parameter: true
        no_goto: true
        more_specific_types_in_doc_comments: true
        fix_doc_comments: false
        comparison_always_same_result: true
        code_rating: true
        check_method_contracts:
            verify_interface_like_constraints: true
            verify_documented_constraints: true
            verify_parent_constraints: true
    javascript:
        var_never_initialized: true
        var_sometimes_initialized: true
        valid_typeof: true
        use_isnan: true
        unsafe_undefined: true
        unsafe_mutable_variable_usage: true
        no_with: true
        no_void: true
        no_use_before_define: true
        no_unused_vars: true
        no_unused_function: false
        no_unused_expressions: true
        no_unused_const: true
        no_unused_assignment: true
        no_unreachable: true
        no_undef_init: true
        no_undef: true
        no_sparse_arrays: true
        no_shadow_builtins: true
        no_sequences: true
        no_return_assign: true
        no_redeclared_const: true
        no_redeclare: true
        no_process_exit: true
        no_path_concat: true
        no_param_assign: true
        no_new_wrappers: true
        no_new_require: true
        no_new_func: true
        no_negated_in_lhs: true
        no_native_reassign: true
        no_loop_var_assign: true
        no_label_var: true
        no_invalid_regexp: true
        no_inner_declarations: true
        no_implied_eval: true
        no_func_assign: true
        no_extra_bind: true
        no_extend_native: true
        no_ex_assign: true
        no_eval: true
        no_empty_label: true
        no_empty_class: true
        no_empty: true
        no_else_return: true
        no_dupe_keys: true
        no_delete_var: true
        no_debugger: true
        no_constant_condition: true
        no_console: true
        no_comma_dangle: true
        no_caller: true
        no_alias_builtins: true
        eqeqeq: true
        duplicate_code: true
        curly: true
        code_rating: true
        check_unused_parameters: true
        check_unused_object_creation: true
        check_unused_member_calls: true
        check_unnecessary_return: true
        check_unnecessary_continue: true
        check_undeclared_vars: true
        check_try_statement: true
        check_too_many_arguments: true
        'check_switch_unintended label': true
        'check_switch_no_uncommented_fallthrough"': true
        check_switch_default_only: true
        check_switch_default_not_last: true
        check_switch_ambiguous_test: true
        check_loop_no_body: true
        check_for_loops_test: true

build:
    dependencies:
        before:
            - 'composer travis:install-with-mysql'
            - 'php -f ./.scripts/travis/enable_plugins.php'
    environment:
        php: 
            version: 7.2
            ini:
                apc.cache_by_default: "1"
                apc.canonicalize: "1"
                apc.coredump_unmap: "1"
                apc.enable_cli: "0"
                apc.enabled: "1"
                apc.file_update_protection: "2"
                apc.gc_ttl: "3600"
                apc.include_once_override: "0"
                apc.local_size: 128M
                apc.localcache: "1"
                apc.max_file_size: 128K
                apc.mmap_file_mask: /apc.shm.XXXXXX
                apc.num_files_hint: "1024"
                apc.optimization: "0"
                apc.report_autofilter: "0"
                apc.rfc1867: "1"
                apc.rfc1867_freq: "5"
                apc.rfc1867_name: APC_UPLOAD_PROGRESS
                apc.rfc1867_prefix: upload_
                apc.shm_segments: "1"
                apc.shm_size: 128M
                apc.stat: "1"
                apc.stat_ctime: "1"
                apc.ttl: "7200"
                apc.user_ttl: "7200"
                apc.write_lock: "1"
        memcached: true
        variables:
            ELGG_DB_PREFIX: 't_i_elgg_'
            ELGG_DB_HOST: 'localhost'
            ELGG_DB_NAME: 'elgg'
            ELGG_DB_USER: 'root'
            ELGG_DB_PASS: 'password'
            ELGG_WWWROOT: 'http://localhost/'
            TRAVIS: true
    nodes:
        analysis:
            tests:
                override:
                    - php-scrutinizer-run

tools:
    external_code_coverage:
        timeout: 1800    # Timeout in seconds.