rloomans/new-teamtemp

View on GitHub

Showing 149 of 528 total issues

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

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

            function done( status, nativeStatusText, responses, headers ) {
                var isSuccess, success, error, response, modified,
                    statusText = nativeStatusText;
    
                // Ignore repeat invocations
    Severity: Major
    Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

      Function add has 72 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 teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

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

        function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
            if ( postFilter && !postFilter[ expando ] ) {
                postFilter = setMatcher( postFilter );
            }
            if ( postFinder && !postFinder[ expando ] ) {
        Severity: Major
        Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

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

                              function resolve( depth, deferred, handler, special ) {
                                  return function() {
                                      var that = this,
                                          args = arguments,
                                          mightThrow = function() {
          Severity: Major
          Found in teamtemp/static/jquery-3.6.3.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 teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

              Function superMatcher has 65 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      superMatcher = function( seed, context, xml, results, outermost ) {
                          var elem, j, matcher,
                              matchedCount = 0,
                              i = "0",
                              unmatched = seed && [],
              Severity: Major
              Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

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

                def submit_view(request, survey_id, team_name=''):
                    user = get_or_create_user(request)
                
                    survey = get_object_or_404(TeamTemperature, pk=survey_id)
                
                
                Severity: Minor
                Found in teamtemp/views.py - About 2 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 bvc_view has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                Open

                def bvc_view(
                        request,
                        survey_id,
                        team_name='',
                        archive_id='',
                Severity: Minor
                Found in teamtemp/views.py - About 2 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 domManip has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function domManip( collection, args, callback, ignored ) {
                
                    // Flatten any nested arrays
                    args = flat( args );
                
                
                Severity: Major
                Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

                  Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function ajaxConvert( s, response, jqXHR, isSuccess ) {
                      var conv2, current, conv, tmp, prev,
                          converters = {},
                  
                          // Work with a copy of dataTypes in case we need to modify it for conversion
                  Severity: Major
                  Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

                    Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        init = jQuery.fn.init = function( selector, context, root ) {
                            var match, elem;
                    
                            // HANDLE: $(""), $(null), $(undefined), $(false)
                            if ( !selector ) {
                    Severity: Major
                    Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

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

                      def prune_word_cloud_cache(_):
                          timezone.activate(datetime.timezone.utc)
                          print("prune_word_cloud_cache: Start at %s" %
                                utc_timestamp(), file=sys.stderr)
                      
                      
                      Severity: Minor
                      Found in teamtemp/views.py - About 2 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 remove has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          remove: function( elem, types, handler, selector, mappedTypes ) {
                      
                              var j, origCount, tmp,
                                  events, t, handleObj,
                                  special, handlers, type, namespaces, origType,
                      Severity: Major
                      Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

                        Function buildFragment has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function buildFragment( elems, context, scripts, selection, ignored ) {
                            var elem, tmp, tag, wrap, attached, j,
                                fragment = context.createDocumentFragment(),
                                nodes = [],
                                i = 0,
                        Severity: Major
                        Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

                          File models.py has 251 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          from __future__ import unicode_literals
                          
                          import hashlib
                          from datetime import timedelta
                          
                          
                          Severity: Minor
                          Found in teamtemp/responses/models.py - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                            if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                ( !handler || handler.guid === handleObj.guid ) &&
                                                ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                                ( !selector || selector === handleObj.selector ||
                                                    selector === "**" && handleObj.selector ) ) {
                            Severity: Critical
                            Found in teamtemp/static/jquery-3.6.3.js - About 2 hrs to fix

                              Function matcherFromTokens has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function matcherFromTokens( tokens ) {
                                  var checkContext, matcher, j,
                                      len = tokens.length,
                                      leadingRelative = Expr.relative[ tokens[ 0 ].type ],
                                      implicitRelative = leadingRelative || Expr.relative[ " " ],
                              Severity: Minor
                              Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

                                Function select has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                select = Sizzle.select = function( selector, context, results, seed ) {
                                    var i, tokens, token, type, find,
                                        compiled = typeof selector === "function" && selector,
                                        match = !seed && tokenize( ( selector = compiled.selector || selector ) );
                                
                                
                                Severity: Minor
                                Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix

                                  Function addCombinator has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function addCombinator( matcher, combinator, base ) {
                                      var dir = combinator.dir,
                                          skip = combinator.next,
                                          key = skip || dir,
                                          checkNonElements = base && key === "parentNode",
                                  Severity: Minor
                                  Found in teamtemp/static/jquery-3.6.3.js - About 1 hr to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language