lucydot/effmass

View on GitHub

Showing 213 of 291 total issues

Avoid deeply nested control flow statements.
Open

                    if ( hasScripts ) {

                        // Support: Android <=4.0 only, PhantomJS 1 only
                        // push.apply(_, arraylike) throws on ancient WebKit
                        jQuery.merge( scripts, getAll( node, "script" ) );
Severity: Major
Found in docs/build/_static/jquery-3.5.1.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if ( conv && s.throws ) {
                            response = conv( response );
                        } else {
                            try {
                                response = conv( response );
    Severity: Major
    Found in docs/build/_static/jquery-3.5.1.js - About 45 mins to fix

      Function boxModelAdjustment has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
      Severity: Minor
      Found in docs/build/_static/jquery-3.5.1.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if ( newContext !== context || !support.scope ) {
        
                                // Capture the context ID, setting it first if necessary
                                if ( ( nid = context.getAttribute( "id" ) ) ) {
                                    nid = nid.replace( rcssescape, fcssescape );
        Severity: Major
        Found in docs/build/_static/jquery-3.5.1.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if ( !( unmatched[ i ] || setMatched[ i ] ) ) {
                                          setMatched[ i ] = pop.call( results );
                                      }
          Severity: Major
          Found in docs/build/_static/jquery-3.5.1.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                if ( !selector ) {
                                    push.apply( results, seed );
                                    return results;
                                }
            Severity: Major
            Found in docs/build/_static/jquery-3.5.1.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if ( attrs[ i ] ) {
                                          name = attrs[ i ].name;
                                          if ( name.indexOf( "data-" ) === 0 ) {
                                              name = camelCase( name.slice( 5 ) );
                                              dataAttr( elem, name, data[ name ] );
              Severity: Major
              Found in docs/build/_static/jquery-3.5.1.js - About 45 mins to fix

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

                def print_results(segment, data, settings, polyfit_order=None, figsize=_default_figsize):
                    
                    polyfit_order = settings.degree_bandfit if polyfit_order is None else polyfit_order
                    _check_poly_order(polyfit_order)
                
                
                Severity: Minor
                Found in effmass/outputs.py - About 45 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 skip has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def skip(app, what, name, obj, skip, options):
                Severity: Minor
                Found in docs/source/conf.py - About 45 mins to fix

                  Function plot_segments has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def plot_segments(Data, Settings, segments, savefig=False, random_int=None, figsize=_default_figsize):
                  Severity: Minor
                  Found in effmass/outputs.py - About 45 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if ( matcher[ expando ] ) {
                    
                                    // Find the next relative operator (if any) for proper handling
                                    j = ++i;
                                    for ( ; j < len; j++ ) {
                    Severity: Major
                    Found in docs/build/_static/jquery-3.5.1.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                      if ( !support.focusin ) {
                          jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
                      
                              // Attach a single capturing handler on the document while someone wants focusin/focusout
                              var handler = function( event ) {
                      Severity: Major
                      Found in docs/build/_static/jquery-3.5.1.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" &&
                                    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 docs/build/_static/jquery-3.5.1.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                      if ( support.qsa &&
                                          !nonnativeSelectorCache[ selector + " " ] &&
                                          ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
                          
                                          // Support: IE 8 only
                          Severity: Major
                          Found in docs/build/_static/jquery-3.5.1.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if (terms[excluded[i]] == file ||
                                        titleterms[excluded[i]] == file ||
                                        $u.contains(terms[excluded[i]] || [], file) ||
                                        $u.contains(titleterms[excluded[i]] || [], file)) {
                                      valid = false;
                            Severity: Major
                            Found in docs/build/_static/searchtools.js - About 40 mins to fix

                              Function buildFragment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              function buildFragment( elems, context, scripts, selection, ignored ) {
                              Severity: Minor
                              Found in docs/build/_static/jquery-3.5.1.js - About 35 mins to fix

                                Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    add: function( elem, types, handler, data, selector ) {
                                Severity: Minor
                                Found in docs/build/_static/jquery-3.5.1.js - About 35 mins to fix

                                  Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          "CHILD": function( type, what, _argument, first, last ) {
                                  Severity: Minor
                                  Found in docs/build/_static/jquery-3.5.1.js - About 35 mins to fix

                                    Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        remove: function( elem, types, handler, selector, mappedTypes ) {
                                    Severity: Minor
                                    Found in docs/build/_static/jquery-3.5.1.js - About 35 mins to fix

                                      Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      function condense( unmatched, map, filter, context, xml ) {
                                      Severity: Minor
                                      Found in docs/build/_static/jquery-3.5.1.js - About 35 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language