prasadtalasila/IRCLogParser

View on GitHub

Showing 95 of 95 total issues

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

def infomap_igraph(ig_graph, net_file_location=None):
    """ 
        Performs igraph-infomap analysis on the nx graph
    
    Args:
Severity: Minor
Found in lib/analysis/community.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 correlational_activity has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

def correlational_activity(log_directory, output_directory, channel_name, start_date, end_date):
Severity: Minor
Found in lib/validate.py - About 35 mins to fix

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

def keywords_clusters(log_dict, nicks, nick_same_list, output_directory, out_file_name):
Severity: Minor
Found in lib/analysis/user.py - About 35 mins to fix

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

    def add_channel_weighted_edge(graph, adjlist, nicks_hash, channels_hash, channel):
Severity: Minor
Found in lib/analysis/network.py - About 35 mins to fix

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

def codelengths(log_directory, output_directory, channel_name, start_date, end_date):
Severity: Minor
Found in lib/validate.py - About 35 mins to fix

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

def conv_len_conv_refr_time(log_dict, nicks, nick_same_list, rt_cutoff_time, cutoff_percentile):
Severity: Minor
Found in lib/analysis/channel.py - About 35 mins to fix

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

    def bin_increment(nick_name, messager, nick_spliced, bins, bin_index):
Severity: Minor
Found in lib/analysis/network.py - About 35 mins to fix

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

def box_plot_for_degree(log_directory, output_directory, channel_name, start_date, end_date):
Severity: Minor
Found in lib/validate.py - About 35 mins to fix

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

def keywords_hits_overlap(log_directory, output_directory, channel_name, start_date, end_date):
Severity: Minor
Found in lib/validate.py - About 35 mins to fix

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

def hits(G, max_iter=100, tol=1.0e-8, nstart=None, normalized=True):
Severity: Minor
Found in lib/network_util.py - About 35 mins to fix

Function check_if_dir_exists has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def check_if_dir_exists(output_directory):
    """ 
        Creates the directory for output if not there

    Args:
Severity: Minor
Found in lib/in_out/saver.py - About 25 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

Rule doesn't have all its properties in alphabetical order.
Open

body {
Severity: Minor
Found in lib/protovis/ex.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

#fig {
Severity: Minor
Found in lib/protovis/ex.css by csslint

Don't use IDs in selectors.
Open

#fig {
Severity: Minor
Found in lib/protovis/ex.css by csslint

Don't use IDs in selectors.
Open

#center {
Severity: Minor
Found in lib/protovis/ex.css by csslint
Severity
Category
Status
Source
Language