angelakuo/citydogshare

View on GitHub
public/assets/semantic-ui/api-b91495d5f4243ff171bf15363611a5a75b37e325681a2bab84ef52fd85e47a76.js

Summary

Maintainability
F
6 days
Test Coverage

Function api has 669 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.api = $.fn.api = function(parameters) {

  var
    // use window context if none specified
    $allModules     = $.isFunction(this)

    File api-b91495d5f4243ff171bf15363611a5a75b37e325681a2bab84ef52fd85e47a76.js has 734 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

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

      Function urlData has 66 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                urlData: function(url, urlData) {
                  var
                    requiredVariables,
                    optionalVariables
                  ;

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

                query: function() {
        
                  if(module.is.disabled()) {
                    module.debug('Element is disabled API request aborted');
                    return;

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

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

            Function error has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        error: function(xhr, status, httpMessage) {
                          var
                            errorMessage = (settings.error[status] !== undefined)
                              ? settings.error[status]
                              : httpMessage,

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

                        settings: function() {
                          var
                            runSettings
                          ;
                          runSettings = settings.beforeSend.call($module, settings);

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

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

                  Avoid deeply nested control flow statements.
                  Open

                                          if(response && response.error !== undefined) {
                                            errorMessage = response.error;
                                          }

                    Avoid too many return statements within this function.
                    Open

                                  return settings.on;

                      There are no issues that match your filters.

                      Category
                      Status