muneebalam/scrapenhl2

View on GitHub

Showing 385 of 747 total issues

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 docs/build/_static/jquery-3.1.0.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 docs/build/html/_static/jquery-3.1.0.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 docs/build/_static/jquery-3.1.0.js - About 2 hrs to fix

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

        def _game_h2h_chart(season, game, corsi, toi, orderh, orderr, numf_h=None, numf_r=None, save_file=None):
            """
            This method actually does the plotting for game_h2h
        
            :param season: int, the season
        Severity: Major
        Found in scrapenhl2/plot/game_h2h.py - About 2 hrs to fix

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

          def player_as_id(playername, filterids=None, dob=None):
              """
              A helper method. If player entered is int, returns that. If player is str, returns integer id of that player.
          
              :param playername: int, or str, the player whose names you want to retrieve
          Severity: Minor
          Found in scrapenhl2/scrape/players.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 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;
          
                      // Ignore repeat invocations
          Severity: Major
          Found in docs/build/html/_static/jquery-3.1.0.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;
            
                        // Ignore repeat invocations
            Severity: Major
            Found in docs/build/_static/jquery-3.1.0.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 docs/build/html/_static/jquery-3.1.0.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 docs/build/_static/jquery-3.1.0.js - About 2 hrs to fix

                  Function setMatcher has 66 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 docs/build/html/_static/jquery-3.1.0.js - About 2 hrs to fix

                    Function setMatcher has 66 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 docs/build/_static/jquery-3.1.0.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 docs/build/html/_static/jquery-3.1.0.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 docs/build/_static/jquery-3.1.0.js - About 2 hrs to fix

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

                            performTermsSearch : function(searchterms, excluded, terms, titleterms) {
                              var docnames = this._index.docnames;
                              var filenames = this._index.filenames;
                              var titles = this._index.titles;
                          
                          
                          Severity: Minor
                          Found in docs/build/html/_static/searchtools.js - 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 performTermsSearch has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                          Open

                            performTermsSearch : function(searchterms, excluded, terms, titleterms) {
                              var docnames = this._index.docnames;
                              var filenames = this._index.filenames;
                              var titles = this._index.titles;
                          
                          
                          Severity: Minor
                          Found in docs/build/_static/searchtools.js - 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 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 docs/build/html/_static/jquery-3.1.0.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 docs/build/_static/jquery-3.1.0.js - About 2 hrs to fix

                              File parse_pbp.py has 264 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              """
                              This module contains methods for parsing PBP.
                              """
                              
                              import os.path
                              Severity: Minor
                              Found in scrapenhl2/scrape/parse_pbp.py - About 2 hrs to fix

                                Function performTermsSearch has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  performTermsSearch : function(searchterms, excluded, terms, titleterms) {
                                    var docnames = this._index.docnames;
                                    var filenames = this._index.filenames;
                                    var titles = this._index.titles;
                                
                                
                                Severity: Major
                                Found in docs/build/html/_static/searchtools.js - About 2 hrs to fix

                                  Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function domManip( collection, args, callback, ignored ) {
                                  
                                      // Flatten any nested arrays
                                      args = concat.apply( [], args );
                                  
                                  
                                  Severity: Major
                                  Found in docs/build/html/_static/jquery-3.1.0.js - About 2 hrs to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language