adobe/brackets

View on GitHub
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/ui/jquery.ui.button.js

Summary

Maintainability
D
1 day
Test Coverage

Function _create has 137 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _create: function() {
        this.element.closest( "form" )
            .unbind( "reset.button" )
            .bind( "reset.button", formResetHandler );

    File jquery.ui.button.js has 354 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery UI Button @VERSION
     *
     * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
     * Dual licensed under the MIT or GPL Version 2 licenses.

      Function _resetButton has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _resetButton: function() {
              if ( this.type === "input" ) {
                  if ( this.options.label ) {
                      this.element.val( this.options.label );
                  }

        Function _determineButtonType has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _determineButtonType: function() {
                var ancestor, labelSelector, checked;
        
                if ( this.element.is("[type=checkbox]") ) {
                    this.type = "checkbox";

          Function refresh has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              refresh: function() {
                  var isDisabled = this.element.is( ":disabled" );
                  if ( isDisabled !== this.options.disabled ) {
                      this._setOption( "disabled", isDisabled );
                  }

            There are no issues that match your filters.

            Category
            Status