Showing 95 of 95 total issues
Function infomap_igraph
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def infomap_igraph(ig_graph, net_file_location=None):
"""
Performs igraph-infomap analysis on the nx graph
Args:
- Read upRead up
- Create a ticketCreate a ticket
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
Open
def correlational_activity(log_directory, output_directory, channel_name, start_date, end_date):
- Create a ticketCreate a ticket
Function keywords_clusters
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def keywords_clusters(log_dict, nicks, nick_same_list, output_directory, out_file_name):
- Create a ticketCreate a ticket
Function add_channel_weighted_edge
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add_channel_weighted_edge(graph, adjlist, nicks_hash, channels_hash, channel):
- Create a ticketCreate a ticket
Function codelengths
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def codelengths(log_directory, output_directory, channel_name, start_date, end_date):
- Create a ticketCreate a ticket
Function conv_len_conv_refr_time
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def conv_len_conv_refr_time(log_dict, nicks, nick_same_list, rt_cutoff_time, cutoff_percentile):
- Create a ticketCreate a ticket
Function bin_increment
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def bin_increment(nick_name, messager, nick_spliced, bins, bin_index):
- Create a ticketCreate a ticket
Function box_plot_for_degree
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def box_plot_for_degree(log_directory, output_directory, channel_name, start_date, end_date):
- Create a ticketCreate a ticket
Function keywords_hits_overlap
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def keywords_hits_overlap(log_directory, output_directory, channel_name, start_date, end_date):
- Create a ticketCreate a ticket
Function hits
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def hits(G, max_iter=100, tol=1.0e-8, nstart=None, normalized=True):
- Create a ticketCreate a ticket
Function check_if_dir_exists
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def check_if_dir_exists(output_directory):
"""
Creates the directory for output if not there
Args:
- Read upRead up
- Create a ticketCreate a ticket
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
Open
body {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
Open
#fig {
- Create a ticketCreate a ticket
- Exclude checks