angelakuo/citydogshare

View on GitHub
public/assets/semantic-ui/dropdown-e6bc8f641617bd9b0438839102dd0a4fe13785fc8e33b50207d25c1ca515a630.js

Summary

Maintainability
F
2 wks
Test Coverage

Function dropdown has 1533 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.dropdown = function(parameters) {
  var
    $allModules    = $(this),
    $document      = $(document),

    File dropdown-e6bc8f641617bd9b0438839102dd0a4fe13785fc8e33b50207d25c1ca515a630.js has 1639 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * # Semantic - Dropdown
     * http://github.com/semantic-org/semantic-ui/
     *
     *

      Function keydown has 124 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                keydown: function(event) {
                  var
                    $currentlySelected = $item.not(className.filtered).filter('.' + className.selected).eq(0),
                    $activeItem        = $menu.children('.' + className.active).eq(0),
                    $selectedItem      = ($currentlySelected.length > 0)

        Function hide has 79 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  hide: function(callback, $subMenu) {
                    var
                      $currentMenu = $subMenu || $menu,
                      duration = ($subMenu)
                        ? (settings.duration * 0.9)

          Function show has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    show: function(callback, $subMenu) {
                      var
                        $currentMenu = $subMenu || $menu,
                        start = ($subMenu)
                          ? function() {}

            Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    invoke: function(query, passedArguments, context) {
                      var
                        object = instance,
                        maxDepth,
                        found,

              Function item has 47 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                        item: function(value, strict) {
                          var
                            $selectedItem = false
                          ;
                          value = (value !== undefined)

                Function filter has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        filter: function(searchTerm) {
                          var
                            $results       = $(),
                            escapedTerm    = module.escape.regExp(searchTerm),
                            exactRegExp    = new RegExp('^' + escapedTerm, 'igm'),

                  Function selectValues has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                            selectValues: function() {
                              var
                                select = {}
                              ;
                              select.values = (settings.sortSelect)

                    Function mouseEvents has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                              mouseEvents: function() {
                                module.verbose('Mouse detected binding mouse events');
                                if( module.is.searchSelection() ) {
                                  $module
                                    .on('mousedown' + eventNamespace, selector.menu, module.event.menu.activate)

                      Function scrollPosition has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                scrollPosition: function($item, forceScroll) {
                                  var
                                    edgeTolerance = 5,
                                    hasActive,
                                    offset,

                        Function select has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                  select: function() {
                                    var
                                      selectValues  = module.get.selectValues()
                                    ;
                                    module.debug('Dropdown initialized on a select', selectValues);

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

                                    display: function() {
                                      var
                                        title = settings.name + ':',
                                        totalTime = 0
                                      ;

                            Function easeOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              easeOutQuad: function (x, t, b, c, d) {

                              There are no issues that match your filters.

                              Category
                              Status