BLKSerene/Wordless

View on GitHub

Showing 204 of 204 total issues

Consider simplifying this complex logical expression.
Open

                if (
                    token[0] == '།'
                    and text
                    and text[-1] in ['།', 'ཀ', 'ག']
                ):
Severity: Major
Found in wordless/wl_nlp/wl_word_detokenization.py - About 1 hr to fix

    Function add_header_hor has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def add_header_hor(
    Severity: Major
    Found in wordless/wl_widgets/wl_tables.py - About 1 hr to fix

      Function add_headers_hor has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def add_headers_hor(
      Severity: Major
      Found in wordless/wl_widgets/wl_tables.py - About 1 hr to fix

        Function wl_test_stanza has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def wl_test_stanza(
        Severity: Major
        Found in tests/tests_nlp/tests_stanza/test_stanza.py - About 1 hr to fix

          Function yatess_correction has 8 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def yatess_correction(o11s, o12s, o21s, o22s, e11s, e12s, e21s, e22s):
          Severity: Major
          Found in wordless/wl_measures/wl_measures_statistical_significance.py - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                                        if (
                                            (
                                                (
                                                    not settings['search_settings']['match_dependency_relations']
                                                    and (token in search_terms or head in search_terms)
            Severity: Major
            Found in wordless/wl_dependency_parser.py - About 1 hr to fix

              Function wl_spin_boxes_min_max_no_limit has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def wl_spin_boxes_min_max_no_limit(
              Severity: Major
              Found in wordless/wl_widgets/wl_boxes.py - About 50 mins to fix

                Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def __init__(
                Severity: Major
                Found in wordless/wl_profiler.py - About 50 mins to fix

                  Function ins_headers_vert has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def ins_headers_vert(
                  Severity: Major
                  Found in wordless/wl_widgets/wl_tables.py - About 50 mins to fix

                    Function ins_header_vert has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def ins_header_vert(
                    Severity: Major
                    Found in wordless/wl_widgets/wl_tables.py - About 50 mins to fix

                      Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def __init__(self, main, title, width = 0, height = 0, resizable = True, help_info = '', err_msg = ''):
                      Severity: Major
                      Found in wordless/wl_dialogs/wl_dialogs_errs.py - About 50 mins to fix

                        Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def __init__(self, main, title, width = 0, height = 0, resizable = True, icon = True, no_buttons = False):
                        Severity: Major
                        Found in wordless/wl_dialogs/wl_dialogs.py - About 50 mins to fix

                          Function widgets_filter has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def widgets_filter(parent, label, val_min, val_max, settings, filter_name, double = False):
                          Severity: Major
                          Found in wordless/wl_results/wl_results_filter.py - About 50 mins to fix

                            Avoid deeply nested control flow statements.
                            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),
                            Severity: Major
                            Found in tests/tests_figs/test_figs_stats.py - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                              if any((text in tr for text in [])):
                                                  # Flag translation as unfinished to be reviewed manually
                                                  unfinished = True
                              
                              
                              Severity: Major
                              Found in utils/wl_trs_translate.py - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                            for word in wl_word_tokenization.wl_word_tokenize_flat(main, tr, lang):
                                                                add_val_to_trs(trs_lexicon, word, vals)
                                                        else:
                                Severity: Major
                                Found in utils/wl_generate_vader_dicts.py - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  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)
                                  
                                  
                                  Severity: Major
                                  Found in wordless/wl_colligation_extractor.py - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    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,
                                    Severity: Major
                                    Found in wordless/wl_colligation_extractor.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      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']:
                                      Severity: Major
                                      Found in wordless/wl_nlp/wl_matching.py - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    for j in range(10):
                                                                        self.set_item_num(row + j, i, 0)
                                        
                                        
                                        Severity: Major
                                        Found in wordless/wl_profiler.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language