chrislit/abydos

View on GitHub

Showing 383 of 4,191 total issues

Consider simplifying this complex logical expression.
Open

            if i == 0 and word[0] == 'y':
                word = 'Y' + word[1:]
            elif word[i] == 'y' and word[i - 1] in self._vowels:
                word = word[:i] + 'Y' + word[i + 1 :]
            elif (
Severity: Major
Found in abydos/stemmer/_snowball_dutch.py - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                                if pos0 >= 0:
                                    while (_phonet_rules[pos0] is None) or (
                                        cast(str, _phonet_rules[pos0])[0] == char0
                                    ):
                                        if pos0 > end3:
    Severity: Major
    Found in abydos/phonetic/_phonet.py - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                  if (
                      word[1:2] in self._uc_c_set - {'M', 'N'}
                      and word[2:3] in self._uc_c_set
                  ) or (
                      word[1:2] in self._uc_c_set and word[2:3] not in self._uc_c_set
      Severity: Major
      Found in abydos/phonetic/_henry_early.py - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                    if skip:
                        skip -= 1
                    elif char in self._uc_vy_set:
                        code += char
                    # IIc
        Severity: Major
        Found in abydos/phonetic/_henry_early.py - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if matches > 1 or (
                      matches == 1
                      and src2_num_words == 1
                      and tar2_num_words == 1
                      and (tar_len_specials > 0 or src_len_specials > 0)
          Severity: Major
          Found in abydos/distance/_synoname.py - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                    if matches > 1 or (
                        matches == 1
                        and src1_num_words == 1
                        and tar1_num_words == 1
                        and (tar_len_specials > 0 or src_len_specials > 0)
            Severity: Major
            Found in abydos/distance/_synoname.py - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                              if syll[-1] in _vowels and (
                                  (
                                      len(w[i:]) > 1
                                      and w[i : i + 1] not in _vowels
                                      and w[i + 1 : i + 2] not in _vowels
              Severity: Major
              Found in abydos/tokenizer/_saps.py - About 40 mins to fix

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

                    def __init__(
                Severity: Minor
                Found in abydos/phonetic/_beider_morse.py - About 35 mins to fix

                  Function pairwise_similarity_statistics has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def pairwise_similarity_statistics(
                  Severity: Minor
                  Found in abydos/stats/_pairwise.py - About 35 mins to fix

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

                        def __init__(
                    Severity: Minor
                    Found in abydos/distance/_koppen_i.py - About 35 mins to fix

                      Function download_package has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def download_package(
                      Severity: Minor
                      Found in abydos/util/_data.py - About 35 mins to fix

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

                            def __init__(
                        Severity: Minor
                        Found in abydos/distance/_typo.py - About 35 mins to fix

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

                              def __init__(
                          Severity: Minor
                          Found in abydos/distance/_gini_i.py - About 35 mins to fix

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

                                def __init__(
                            Severity: Minor
                            Found in abydos/distance/_softtf_idf.py - About 35 mins to fix

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

                                  def __init__(
                              Severity: Minor
                              Found in abydos/distance/_bleu.py - About 35 mins to fix

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

                                    def __init__(
                                Severity: Minor
                                Found in abydos/distance/_synoname.py - About 35 mins to fix

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

                                      def __init__(
                                  Severity: Minor
                                  Found in abydos/distance/_goodman_kruskal_tau_a.py - About 35 mins to fix

                                    Function _synoname_word_approximation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def _synoname_word_approximation(
                                    Severity: Minor
                                    Found in abydos/distance/_synoname.py - About 35 mins to fix

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

                                          def __init__(
                                      Severity: Minor
                                      Found in abydos/distance/_baulieu_iv.py - About 35 mins to fix

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

                                            def __init__(
                                        Severity: Minor
                                        Found in abydos/distance/_steffensen.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language