angelakuo/citydogshare

View on GitHub

Showing 2,136 of 3,976 total issues

Function matchersUtil has a Cognitive Complexity of 130 (exceeds 5 allowed). Consider refactoring.
Open

getJasmineRequireObj().matchersUtil = function(j$) {
  // TODO: what to do about jasmine.pp not being inject? move to JSON.stringify? gut PrettyPrinter?

  return {
    equals: function(a, b, customTesters) {

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File effect-drop-5d41fc43f4b0edb49f41465ee4527a7b494decdd36b4d6bcbcd0751fcd63e023.js has 1045 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery UI Effects 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors

    File effect-clip-3d34937481083fd78849298551de9d046757292c6c917d21c7866f33e31d8931.js has 1044 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery UI Effects 1.11.4
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors

      File effect-pulsate-119be587249ba6d80e5162371d8c2d8f5d8b4e94c8fb71bc9ac4e55fe4373b9d.js has 1043 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * jQuery UI Effects 1.11.4
       * http://jqueryui.com
       *
       * Copyright jQuery Foundation and other contributors

        File effect-slide-37342e62971003aaa4bd1af1952e55b7652a70bda1602d2d14d5eb1a4a561e69.js has 1043 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * jQuery UI Effects 1.11.4
         * http://jqueryui.com
         *
         * Copyright jQuery Foundation and other contributors

          Function dimmer has 524 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          $.fn.dimmer = function(parameters) {
            var
              $allModules     = $(this),
          
              time            = new Date().getTime(),

            File effect-highlight-6b346ace44e25905b92b299dda78f50c1800feee7acbed7605b4acd2a8d5e343.js has 1036 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * jQuery UI Effects 1.11.4
             * http://jqueryui.com
             *
             * Copyright jQuery Foundation and other contributors

              File effect-transfer-95f420672abbf13e45fb2fc16452bd434adab6c08fc38aeba1c2bd5347728938.js has 1036 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*!
               * jQuery UI Effects 1.11.4
               * http://jqueryui.com
               *
               * Copyright jQuery Foundation and other contributors

                Function Calendar_constructor has 516 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function Calendar_constructor(element, overrides) {
                    var t = this;
                
                
                    // Exports

                  File selectable-49e0e9347c3eb0da2ee508d99e5bcf20e963189eb02862d028a46637c2e3828e.js has 1024 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*!
                   * jQuery UI Core 1.11.4
                   * http://jqueryui.com
                   *
                   * Copyright jQuery Foundation and other contributors

                    Function state has 513 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      File effect-fade-f35a73ad7f590045c5630e5594f66af72c79733e91e6bbe3e4cd67e9988daff7.js has 1018 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*!
                       * jQuery UI Effects 1.11.4
                       * http://jqueryui.com
                       *
                       * Copyright jQuery Foundation and other contributors

                        File button-0218c64981bfcf8efd0a4f36aad4481acca2c3db2e21db904fb888767e1349c3.js has 1011 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*!
                         * jQuery UI Core 1.11.4
                         * http://jqueryui.com
                         *
                         * Copyright jQuery Foundation and other contributors

                          File effect-3acdb29e7da09c8f0195b994d2f04d73bfef50dc539c84fd2c835d964d33e5c1.js has 995 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*!
                           * jQuery UI Effects 1.11.4
                           * http://jqueryui.com
                           *
                           * Copyright jQuery Foundation and other contributors

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

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

                              File sidebar-8403c2ed156dc1a2cf939aba5ff9e4a929b8f8d929635feb2dd15e4c58269c26.js has 977 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

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

                                Function anonymous has 480 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
                                /* this == yyval */
                                
                                var $0 = $$.length - 1;
                                switch (yystate) {

                                  File nouislider-18d2d5ad521555c564cc69b1c153247aedf8c99609e154dc0bf963a5b3d7ede1.js has 950 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /*!
                                   * Materialize v0.97.6 (http://materializecss.com)
                                   * Copyright 2014-2015 Materialize
                                   * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
                                   */

                                    Function accordion has 469 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    $.fn.accordion = function(parameters) {
                                      var
                                        $allModules     = $(this),
                                    
                                        time            = new Date().getTime(),

                                      File form-e901d0849a14a072e7c442a607b67963b650e18ae9250e24fd7b45f7de4c5743.js has 933 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      /*
                                       * # Semantic - Form Validation
                                       * http://github.com/semantic-org/semantic-ui/
                                       *
                                       *
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language