Showing 205 of 205 total issues
Function add_header_hor
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add_header_hor(
Consider simplifying this complex logical expression. Open
Open
if platform.system() == 'Windows':
assert is_windows and not is_macos and not is_linux
elif platform.system() == 'Darwin':
assert not is_windows and is_macos and not is_linux
elif platform.system() == 'Linux':
Consider simplifying this complex logical expression. Open
Open
if (
token[0] == '།'
and text
and text[-1] in ['།', 'ཀ', 'ག']
):
Consider simplifying this complex logical expression. Open
Open
if (
self.tokenized
and (css_para and css_sentence and css_word)
and (soup.select_one(css_para) and soup.select_one(css_sentence) and soup.select_one(css_word))
):
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 ins_headers_vert
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ins_headers_vert(
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 __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
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 ins_header_vert
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ins_header_vert(
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 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
if (para := para[i_tag_end:]):
tags_tokens = self.add_tags_splitting(para, tags_tokens)
# Insert tags at the start of the text
if self.tags_text_start and tags_tokens:
Avoid deeply nested control flow statements. Open
Open
for sentence in doc.sents:
htmls.append(spacy.displacy.render(
sentence,
style = 'dep',
minify = True,
Function add_header_vert
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add_header_vert(
Avoid deeply nested control flow statements. Open
Open
if not self.isRowHidden(row):
item = self.model().item(row, col)
val_cum += item.val
item.setText(f'{val_cum:.{precision_pcts}%}')
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, main, title, width = 0, height = 0, resizable = True, no_buttons = False):
Avoid deeply nested control flow statements. Open
Open
for collocate in range(10):
collocate = wl_texts.Wl_Token(str(collocate))
freq_1, freq_2 = random.sample(range(10000), 2)
freq_files_items[(node, collocate)] = [
Avoid deeply nested control flow statements. Open
Open
for item, trs in TRS_MISC.items():
if tr == item:
tr = trs[0]
break