Function multi_dict_to_html
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
def multi_dict_to_html(data, table_title='', map_dictionary=None,
row_ordering_key=None):
"""Generates html tables according to the input it gets from the input \
arguments.
Cyclomatic complexity is too high in function multi_dict_to_html. (14)
def multi_dict_to_html(data, table_title='', map_dictionary=None,
row_ordering_key=None):
"""Generates html tables according to the input it gets from the input \
arguments.
Cyclomatic complexity is too high in function single_dict_to_html. (8)
def single_dict_to_html(data, key_title, data_title, table_title='',
map_dictionary=None):
"""
Generates html tables according to the input it gets from the input \
arguments. The table generated is by row, which means that on each row \
File html.py
has 252 lines of code (exceeds 250 allowed). Consider refactoring.
Function single_dict_to_html
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
def single_dict_to_html(data, key_title, data_title, table_title='',
map_dictionary=None):
"""
Generates html tables according to the input it gets from the input \
arguments. The table generated is by row, which means that on each row \
Function isalistofdictionaries
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
def isalistofdictionaries(lst):
"""
Takes a list as argument and checks if all the elements of this list \
are dictionaries. If they are then it returns true, else it returns \
false. If the input argument type is not list then it also returns \
Function single_dict_to_html
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def single_dict_to_html(data, key_title, data_title, table_title='',
Function single_dict_table_data
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
def single_dict_table_data(data_values, td_style=None, td_class=None):
"""
Returns a <td> ... </td> html element for the single_dict_to_html() \
type of tables, data columns. In case that the input data_values is a \
list of dictionaries, this function calls recursively \
Similar blocks of code found in 3 locations. Consider refactoring.
if row_ordered_index % 2 == 0:
row_str = row_str + '<tr>'
else:
row_str = row_str + '<tr class=\"odd\">'
Similar blocks of code found in 3 locations. Consider refactoring.
if num_row % 2 == 0:
table_html = table_html + '<tr>'
else:
table_html = table_html + '<tr class=\"odd\">'
Similar blocks of code found in 3 locations. Consider refactoring.
if row_ordered_index % 2 == 0:
row_str = row_str + '<tr>'
else:
row_str = row_str + '<tr class=\"odd\">'
There are no issues that match your filters.