muneebalam/scrapenhl2

View on GitHub

Showing 385 of 747 total issues

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.1.0.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.1.0.js - About 35 mins to fix

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

      function Tween( elem, options, prop, end, easing ) {
      Severity: Minor
      Found in docs/build/_static/jquery-3.1.0.js - About 35 mins to fix

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

                superMatcher = function( seed, context, xml, results, outermost ) {
        Severity: Minor
        Found in docs/build/_static/jquery-3.1.0.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.1.0.js - About 35 mins to fix

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

            def player_graph(playerid, startdate, enddate, graphtype, roll_len):
            Severity: Minor
            Found in scrapenhl2/plot/app/player_page.py - About 35 mins to fix

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

              def _combo_corsi_from_hrcodes(homedf=None, roaddf=None, corsidf=None, cfca=None, *hrcodes):
              Severity: Minor
              Found in scrapenhl2/manipulate/combos.py - About 35 mins to fix

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

                def add_good_bad_fast_slow(margin=0.05, bottomleft='Slower', bottomright='Better', topleft='Worse', topright='Faster'):
                Severity: Minor
                Found in scrapenhl2/plot/visualization_helper.py - About 35 mins to fix

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

                  def update_player_log_file(playerids, seasons, games, teams, statuses):
                  Severity: Minor
                  Found in scrapenhl2/scrape/players.py - About 35 mins to fix

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

                    def get_game_combo_corsi(season, game, player_n=2, cfca=None, *hrcodes):
                    Severity: Minor
                    Found in scrapenhl2/manipulate/combos.py - About 35 mins to fix

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

                      def rolling_f_graph_plotly(playerid, startdate, enddate, roll_len, gfcf):
                      Severity: Minor
                      Found in scrapenhl2/plot/app/player_page.py - About 35 mins to fix

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

                        def add_onice_players_to_df(df, focus_team, season, gamecol, player_output='ids'):
                        Severity: Minor
                        Found in scrapenhl2/manipulate/add_onice_players.py - About 35 mins to fix

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

                          def labelLine(line, x, label=None, align=True, **kwargs):
                          Severity: Minor
                          Found in scrapenhl2/plot/label_lines.py - About 35 mins to fix

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

                            def parallel_coords(backgrounddf, foregrounddf, groupcol, legendcol=None, axis=None):
                            Severity: Minor
                            Found in scrapenhl2/plot/visualization_helper.py - About 35 mins to fix

                              Function highlightText has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              jQuery.fn.highlightText = function(text, className) {
                                function highlight(node) {
                                  if (node.nodeType == 3) {
                                    var val = node.nodeValue;
                                    var pos = val.toLowerCase().indexOf(text);
                              Severity: Minor
                              Found in docs/build/html/_static/doctools.js - About 35 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 highlightText has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              jQuery.fn.highlightText = function(text, className) {
                                function highlight(node) {
                                  if (node.nodeType == 3) {
                                    var val = node.nodeValue;
                                    var pos = val.toLowerCase().indexOf(text);
                              Severity: Minor
                              Found in docs/build/_static/doctools.js - About 35 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 generate_5v5_player_log has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              def generate_5v5_player_log(season):
                                  """
                                  Takes the play by play and adds player 5v5 info to the master player log file, noting TOI, CF, etc.
                                  This takes awhile because it has to calculate TOICOMP.
                                  :param season: int, the season
                              Severity: Minor
                              Found in scrapenhl2/manipulate/manipulate.py - About 35 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 check_game_toi has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              def check_game_toi(season=None):
                                  """
                                  Rescrapes gone-final games if they do not pass the following checks:
                                      - (TODO)
                              
                              
                              Severity: Minor
                              Found in scrapenhl2/scrape/check_game_data.py - About 35 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 team_as_id has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              def team_as_id(team):
                                  """
                                  A helper method. If team entered is int, returns that. If team is str, returns integer id of that team.
                              
                                  :param team: int, or str
                              Severity: Minor
                              Found in scrapenhl2/scrape/team_info.py - About 35 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 _filter_for_games has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              def _filter_for_games(data, **kwargs):
                                  """
                                  Uses the start_game, end_game, and season_types keyword arguments to filter the data.
                                  :param data: a dataframe with pbp data
                                  :param kwargs: kwargs as given to get_pbp_events, for example
                              Severity: Minor
                              Found in scrapenhl2/manipulate/manipulate.py - About 35 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

                              Severity
                              Category
                              Status
                              Source
                              Language