laboiteproject/lenuage

View on GitHub

Showing 179 of 384 total issues

Function 11 has 119 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],11:[function(require,module,exports){
/* ========================================================================
 * Bootstrap: scrollspy.js v3.3.7
 * http://getbootstrap.com/javascript/#scrollspy
 * ========================================================================
Severity: Major
Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

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

    },{}],5:[function(require,module,exports){
    /* ========================================================================
     * Bootstrap: button.js v3.3.7
     * http://getbootstrap.com/javascript/#buttons
     * ========================================================================
    Severity: Minor
    Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

    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

    Function 3 has 102 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{"../../js/affix.js":3,"../../js/alert.js":4,"../../js/button.js":5,"../../js/carousel.js":6,"../../js/collapse.js":7,"../../js/dropdown.js":8,"../../js/modal.js":9,"../../js/popover.js":10,"../../js/scrollspy.js":11,"../../js/tab.js":12,"../../js/tooltip.js":13,"../../js/transition.js":14}],3:[function(require,module,exports){
    /* ========================================================================
     * Bootstrap: affix.js v3.3.7
     * http://getbootstrap.com/javascript/#affix
     * ========================================================================
    Severity: Major
    Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

      Function 12 has 102 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{}],12:[function(require,module,exports){
      /* ========================================================================
       * Bootstrap: tab.js v3.3.7
       * http://getbootstrap.com/javascript/#tabs
       * ========================================================================
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

        Function 8 has 100 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{}],8:[function(require,module,exports){
        /* ========================================================================
         * Bootstrap: dropdown.js v3.3.7
         * http://getbootstrap.com/javascript/#dropdowns
         * ========================================================================
        Severity: Major
        Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

          Function defaultPrefilter has 99 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function defaultPrefilter( elem, props, opts ) {
              /* jshint validthis: true */
              var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                  anim = this,
                  orig = {},
          Severity: Major
          Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

            Function Animation has 92 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function Animation( elem, properties, options ) {
                var result,
                    stopped,
                    index = 0,
                    length = Animation.prefilters.length,
            Severity: Major
            Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

              Function 12 has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
              Open

              },{}],12:[function(require,module,exports){
              /* ========================================================================
               * Bootstrap: tab.js v3.3.7
               * http://getbootstrap.com/javascript/#tabs
               * ========================================================================
              Severity: Minor
              Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

              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

              Function trigger has 87 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  trigger: function( event, data, elem, onlyHandlers ) {
              
                      var i, cur, tmp, bubbleType, ontype, handle, special,
                          eventPath = [ elem || document ],
                          type = hasOwn.call( event, "type" ) ? event.type : event,
              Severity: Major
              Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

                Function 11 has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
                Open

                },{}],11:[function(require,module,exports){
                /* ========================================================================
                 * Bootstrap: scrollspy.js v3.3.7
                 * http://getbootstrap.com/javascript/#scrollspy
                 * ========================================================================
                Severity: Minor
                Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

                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

                Function Sizzle has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function Sizzle( selector, context, results, seed ) {
                    var m, i, elem, nid, nidselect, match, groups, newSelector,
                        newContext = context && context.ownerDocument,
                
                        // nodeType defaults to 9, since context defaults to document
                Severity: Major
                Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

                  Function CHILD has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          "CHILD": function( type, what, argument, first, last ) {
                              var simple = type.slice( 0, 3 ) !== "nth",
                                  forward = type.slice( -4 ) !== "last",
                                  ofType = what === "of-type";
                  
                  
                  Severity: Major
                  Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

                    Function 5 has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },{}],5:[function(require,module,exports){
                    /* ========================================================================
                     * Bootstrap: button.js v3.3.7
                     * http://getbootstrap.com/javascript/#buttons
                     * ========================================================================
                    Severity: Major
                    Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

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

                                  send: function( headers, complete ) {
                                      var i,
                                          xhr = options.xhr();
                      
                                      xhr.open(
                      Severity: Major
                      Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

                        File views.py has 287 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # coding: utf-8
                        import logging
                        
                        from django.apps import apps
                        from django.contrib.messages.views import SuccessMessageMixin
                        Severity: Minor
                        Found in boites/views.py - About 2 hrs to fix

                          Function matcherFromGroupMatchers has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                              var bySet = setMatchers.length > 0,
                                  byElement = elementMatchers.length > 0,
                                  superMatcher = function( seed, context, xml, results, outermost ) {
                                      var elem, j, matcher,
                          Severity: Major
                          Found in static/dist/js/site-70bd78197e.js - About 2 hrs to fix

                            Function BootstrapSwitch has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function BootstrapSwitch(element) {
                                  var _this = this;
                            
                                  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
                            
                            
                            Severity: Major
                            Found in static/dist/js/site-70bd78197e.js - About 2 hrs to fix

                              Function add has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  add: function( elem, types, handler, data, selector ) {
                              
                                      var handleObjIn, eventHandle, tmp,
                                          events, t, handleObj,
                                          special, handlers, type, namespaces, origType,
                              Severity: Major
                              Found in static/dist/js/site-70bd78197e.js - About 2 hrs to fix

                                Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function done( status, nativeStatusText, responses, headers ) {
                                            var isSuccess, success, error, response, modified,
                                                statusText = nativeStatusText;
                                
                                            // Called once
                                Severity: Major
                                Found in static/dist/js/site-70bd78197e.js - About 2 hrs to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                          if ( forward && useCache ) {
                                  
                                                              // Seek `elem` from a previously-cached index
                                  
                                                              // ...in a gzip-friendly way
                                  Severity: Critical
                                  Found in static/dist/js/site-70bd78197e.js - About 2 hrs to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language