rilwis/meta-box

View on GitHub
js/select-advanced.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function transform has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function transform() {
        var $this = $( this ),
            options = $this.data( 'options' );

        $this.removeClass( 'select2-hidden-accessible' ).removeAttr( 'data-select2-id' );
Severity: Major
Found in js/select-advanced.js - About 2 hrs to fix

    Function transport has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                options.ajax.transport = function ( params, success, failure ) {
                    if ( params.data._type === 'query' ) {
                        delete params.data.page;
                    }
    
    
    Severity: Minor
    Found in js/select-advanced.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status