Showing 204 of 204 total issues
Consider simplifying this complex logical expression. Open
Open
if (
token[0] == '།'
and text
and text[-1] in ['།', 'ཀ', 'ག']
):
Function add_header_hor
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add_header_hor(
Function add_headers_hor
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add_headers_hor(
Function wl_test_stanza
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def wl_test_stanza(
Function yatess_correction
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def yatess_correction(o11s, o12s, o21s, o22s, e11s, e12s, e21s, e22s):
Consider simplifying this complex logical expression. Open
Open
if (
(
(
not settings['search_settings']['match_dependency_relations']
and (token in search_terms or head in search_terms)
Function wl_spin_boxes_min_max_no_limit
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def wl_spin_boxes_min_max_no_limit(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function ins_headers_vert
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ins_headers_vert(
Function ins_header_vert
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ins_header_vert(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, main, title, width = 0, height = 0, resizable = True, help_info = '', err_msg = ''):
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, main, title, width = 0, height = 0, resizable = True, icon = True, no_buttons = False):
Function widgets_filter
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def widgets_filter(parent, label, val_min, val_max, settings, filter_name, double = False):
Avoid deeply nested control flow statements. Open
Open
for collocate in range(10):
collocate = wl_texts.Wl_Token(str(collocate))
stat_files_items[(node, collocate)] = [
random.uniform(0, val_max),
random.uniform(0, val_max),
Avoid deeply nested control flow statements. Open
Open
if any((text in tr for text in [])):
# Flag translation as unfinished to be reviewed manually
unfinished = True
Avoid deeply nested control flow statements. Open
Open
for word in wl_word_tokenization.wl_word_tokenize_flat(main, tr, lang):
add_val_to_trs(trs_lexicon, word, vals)
else:
Avoid deeply nested control flow statements. Open
Open
if freqs_totals[j][k]:
self.set_item_num(i, cols_freqs_start[j] + k * 2 + 1, freq / freqs_totals[j][k])
else:
self.set_item_num(i, cols_freqs_start[j] + k * 2 + 1, 0)
Avoid deeply nested control flow statements. Open
Open
for j, collocate in enumerate(tags_right):
if wl_matching.check_context(
i, tokens,
context_settings = settings['search_settings']['context_settings'],
search_terms_incl = search_terms_incl,
Avoid deeply nested control flow statements. Open
Open
if re_match(search_term, token_search.display_text(), flags = re_flags):
search_results.add(token)
# Match inflected forms of search terms and search results
if settings['match_inflected_forms']:
Avoid deeply nested control flow statements. Open
Open
for j in range(10):
self.set_item_num(row + j, i, 0)