angelakuo/citydogshare

View on GitHub
public/assets/semantic-ui/search-edf600c5e5e5544d678503d4f6dd6be00e03e76f2a77166da81da306cc851ea7.js

Summary

Maintainability
F
1 wk
Test Coverage

Function search has 766 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.search = function(parameters) {
  var
    $allModules     = $(this),
    moduleSelector  = $allModules.selector || '',

    File search-edf600c5e5e5544d678503d4f6dd6be00e03e76f2a77166da81da306cc851ea7.js has 977 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

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

      Function handleKeyboard has 75 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              handleKeyboard: function(event) {
                var
                  // force selector refresh
                  $result      = $module.find(selector.result),
                  $category    = $module.find(selector.category),

        Function category has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            category: function(response) {
              var
                html = '',
                escape = $.fn.search.settings.templates.escape
              ;

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

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

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

                standard: function(response) {
                  var
                    html = ''
                  ;
                  if(response.results !== undefined) {

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

                          click: function(event) {
                            module.debug('Search result selected');
                            var
                              $result = $(this),
                              $title  = $result.find(selector.title).eq(0),

                Function object has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          object: function(searchTerm, source) {
                            var
                              results         = [],
                              fullTextResults = [],
                              searchFields    = $.isArray(settings.searchFields)

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

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

                    Function initialize has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            initialize: function() {
                              module.verbose('Initializing module');
                              var
                                prompt = $prompt[0],
                                inputEvent   = (prompt !== undefined && prompt.oninput !== undefined)

                      Function query has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              query: function() {
                                var
                                  searchTerm = module.get.value(),
                                  cachedHTML = module.read.cachedHTML(searchTerm)
                                ;

                        Function generateResults has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                generateResults: function(response) {
                                  module.debug('Generating html from response', response);
                                  var
                                    template       = settings.templates[settings.type],
                                    isProperObject = ($.isPlainObject(response.results) && !$.isEmptyObject(response.results)),

                          There are no issues that match your filters.

                          Category
                          Status