laboiteproject/lenuage

View on GitHub

Showing 179 of 384 total issues

Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function propFilter( props, specialEasing ) {
    var index, name, easing, value, hooks;

    // camelCase, specialEasing and expand cssHook pass
    for ( index in props ) {
Severity: Minor
Found in static/dist/js/site-70bd78197e.js - About 1 hr to fix

    Function fix has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        fix: function( event ) {
            if ( event[ jQuery.expando ] ) {
                return event;
            }
    
    
    Severity: Minor
    Found in static/dist/js/site-70bd78197e.js - About 1 hr to fix

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

        ScrollSpy.prototype.refresh = function () {
          var that          = this
          var offsetMethod  = 'offset'
          var offsetBase    = 0
      
      
      Severity: Minor
      Found in static/dist/js/site-70bd78197e.js - About 1 hr to fix

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

            function next() {
              $active
                .removeClass('active')
                .find('> .dropdown-menu > .active')
                  .removeClass('active')
        Severity: Minor
        Found in static/dist/js/site-70bd78197e.js - About 1 hr to fix

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

            Collapse.prototype.hide = function () {
              if (this.transitioning || !this.$element.hasClass('in')) return
          
              var startEvent = $.Event('hide.bs.collapse')
              this.$element.trigger(startEvent)
          Severity: Minor
          Found in static/dist/js/site-70bd78197e.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                    if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                            support.getById && context.nodeType === 9 && documentIsHTML &&
                            Expr.relative[ tokens[1].type ] ) {
            
                        context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
            Severity: Major
            Found in static/dist/js/site-70bd78197e.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                  if ( support.matchesSelector && documentIsHTML &&
                      !compilerCache[ expr + " " ] &&
                      ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                      ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
              
              
              Severity: Major
              Found in static/dist/js/site-70bd78197e.js - About 1 hr to fix

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

                    def get_data(self):
                        app = self.content_object.get_data()
                
                        shifted_items = []
                        for item in app.get('data'):
                Severity: Minor
                Found in boites/models.py - About 55 mins 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 access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                Severity: Major
                Found in static/dist/js/site-70bd78197e.js - About 50 mins to fix

                  Function draw has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  function draw(x0, y0, bitmap, width, height, color, bg) {
                  Severity: Major
                  Found in laboite/static/js/gfx.js - About 50 mins to fix

                    Function drawHex has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function drawHex(x0, y0, hex_bitmap, width, height, color, bg) {
                    Severity: Major
                    Found in laboite/static/js/gfx.js - About 50 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if ( copyIsArray ) {
                                              copyIsArray = false;
                                              clone = src && jQuery.isArray( src ) ? src : [];
                      
                                          } else {
                      Severity: Major
                      Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                            if ( ( ofType ?
                                                                node.nodeName.toLowerCase() === name :
                                                                node.nodeType === 1 ) &&
                                                                ++diff ) {
                        
                        
                        Severity: Major
                        Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if ( matches[ sel ] === undefined ) {
                                                      matches[ sel ] = handleObj.needsContext ?
                                                          jQuery( sel, this ).index( cur ) > -1 :
                                                          jQuery.find( sel, this, null, [ cur ] ).length;
                                                  }
                          Severity: Major
                          Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                if ( hasScripts ) {
                            
                                                    // Support: Android<4.1, PhantomJS<2
                                                    // push.apply(_, arraylike) throws on ancient WebKit
                                                    jQuery.merge( scripts, getAll( node, "script" ) );
                            Severity: Major
                            Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( matches[ sel ] ) {
                                                          matches.push( handleObj );
                                                      }
                              Severity: Major
                              Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
                                                            cur = cur.replace( " " + clazz + " ", " " );
                                                        }
                                Severity: Major
                                Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      for ( conv2 in converters ) {
                                  
                                                          // If conv2 outputs current
                                                          tmp = conv2.split( " " );
                                                          if ( tmp[ 1 ] === current ) {
                                  Severity: Major
                                  Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( Expr.relative[ tokens[j].type ] ) {
                                                            break;
                                                        }
                                    Severity: Major
                                    Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if ( nodeType === 9 ) {
                                                              if ( (elem = context.getElementById( m )) ) {
                                      
                                                                  // Support: IE, Opera, Webkit
                                                                  // TODO: identify versions
                                      Severity: Major
                                      Found in static/dist/js/site-70bd78197e.js - About 45 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language