rloomans/new-teamtemp

View on GitHub

Showing 149 of 528 total issues

Function handler has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        handler: function( event ) {
            var notAsync, result,
                saved = dataPriv.get( this, type );

            if ( ( event.isTrigger & 1 ) && this[ type ] ) {
Severity: Minor
Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

    def wordcloud_view(request, word_hash='', width=None, height=None):
        if width:
            width = int(width)
            if not (0 < width <= MAX_WORDCLOUD_WIDTH and is_multiple_of_50(width)):
                return HttpResponseBadRequest(reason="width out of range")
    Severity: Minor
    Found in teamtemp/views.py - About 1 hr 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 load has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    jQuery.fn.load = function( url, params, callback ) {
        var selector, type, response,
            self = this,
            off = url.indexOf( " " );
    
    
    Severity: Minor
    Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

      Function speed has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      jQuery.speed = function( speed, easing, fn ) {
          var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
              complete: fn || !fn && easing ||
                  isFunction( speed ) && speed,
              duration: speed,
      Severity: Minor
      Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

        Function set has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                set: function( elem, value, extra ) {
                    var matches,
                        styles = getStyles( elem ),
        
                        // Only read styles.position if the test has a chance to fail
        Severity: Minor
        Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

              attr: function( elem, name, value ) {
                  var ret, hooks,
                      nType = elem.nodeType;
          
                  // Don't get/set attributes on text, comment and attribute nodes
          Severity: Minor
          Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                removeClass: function( value ) {
                    var classNames, cur, curValue, className, i, finalValue;
            
                    if ( isFunction( value ) ) {
                        return this.each( function( j ) {
            Severity: Minor
            Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

              jQuery.parseHTML = function( data, context, keepScripts ) {
                  if ( typeof data !== "string" ) {
                      return [];
                  }
                  if ( typeof context === "boolean" ) {
              Severity: Minor
              Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                    finish: function( type ) {
                        if ( type !== false ) {
                            type = type || "fx";
                        }
                        return this.each( function() {
                Severity: Minor
                Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                      off: function( types, selector, fn ) {
                          var handleObj, type;
                          if ( types && types.preventDefault && types.handleObj ) {
                  
                              // ( event )  dispatched jQuery.Event
                  Severity: Minor
                  Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                    def login_view(request, survey_id, redirect_to=None):
                        survey = get_object_or_404(TeamTemperature, pk=survey_id)
                    
                        def _password_setter(password):
                            #password = password.encode('utf-8')
                    Severity: Minor
                    Found in teamtemp/views.py - About 1 hr 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 when has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        when: function( singleValue ) {
                            var
                    
                                // count of uncompleted subordinates
                                remaining = arguments.length,
                    Severity: Minor
                    Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                          clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                              var i, l, srcElements, destElements,
                                  clone = elem.cloneNode( true ),
                                  inPage = isAttached( elem );
                      
                      
                      Severity: Minor
                      Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

                        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 teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                              position: function() {
                                  if ( !this[ 0 ] ) {
                                      return;
                                  }
                          
                          
                          Severity: Minor
                          Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                                addClass: function( value ) {
                                    var classNames, cur, curValue, className, i, finalValue;
                            
                                    if ( isFunction( value ) ) {
                                        return this.each( function( j ) {
                            Severity: Minor
                            Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                              function curCSS( elem, name, computed ) {
                                  var width, minWidth, maxWidth, ret,
                                      isCustomProp = rcustomProp.test( name ),
                              
                                      // Support: Firefox 51+
                              Severity: Minor
                              Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

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

                                    remove: function( owner, key ) {
                                        var i,
                                            cache = owner[ this.expando ];
                                
                                        if ( cache === undefined ) {
                                Severity: Minor
                                Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

                                  Function bvc_view has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def bvc_view(
                                  Severity: Major
                                  Found in teamtemp/views.py - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                        if ( support.matchesSelector && documentIsHTML &&
                                            !nonnativeSelectorCache[ expr + " " ] &&
                                            ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                            ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                                    
                                    
                                    Severity: Major
                                    Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language