chrislit/abydos

View on GitHub
abydos/phonetic/_double_metaphone.py

Summary

Maintainability
F
1 wk
Test Coverage

Function encode has a Cognitive Complexity of 408 (exceeds 5 allowed). Consider refactoring.
Open

    def encode(self, word: str) -> str:
        """Return the Double Metaphone code for a word.

        Parameters
        ----------
Severity: Minor
Found in abydos/phonetic/_double_metaphone.py - About 1 wk to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Cyclomatic complexity is too high in method encode. (209)
Open

    def encode(self, word: str) -> str:
        """Return the Double Metaphone code for a word.

        Parameters
        ----------
Severity: Minor
Found in abydos/phonetic/_double_metaphone.py by radon

Cyclomatic Complexity

Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

Construct Effect on CC Reasoning
if +1 An if statement is a single decision.
elif +1 The elif statement adds another decision.
else +0 The else statement does not cause a new decision. The decision is at the if.
for +1 There is a decision at the start of the loop.
while +1 There is a decision at the while statement.
except +1 Each except branch adds a new conditional path of execution.
finally +0 The finally block is unconditionally executed.
with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
assert +1 The assert statement internally roughly equals a conditional statement.
Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

Source: http://radon.readthedocs.org/en/latest/intro.html

File _double_metaphone.py has 797 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2014-2020 by Christopher C. Little.
# This file is part of Abydos.
#
# Abydos is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Severity: Major
Found in abydos/phonetic/_double_metaphone.py - About 1 day to fix

    Cyclomatic complexity is too high in class DoubleMetaphone. (71)
    Open

    class DoubleMetaphone(_Phonetic):
        """Double Metaphone.
    
        Based on Lawrence Philips' (Visual) C++ code from 1999
        :cite:`Philips:2000`.
    Severity: Minor
    Found in abydos/phonetic/_double_metaphone.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Consider simplifying this complex logical expression.
    Open

                        if current > 0 and _string_at(current, 4, {'CHAE'}):
                            primary, secondary = _metaph_add('K', 'X')
                            current += 2
                            continue
    
    
    Severity: Critical
    Found in abydos/phonetic/_double_metaphone.py - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

                      if (
                          current > 1
                          and not _is_vowel(current - 2)
                          and _string_at((current - 1), 3, {'ACH'})
                          and (
      Severity: Critical
      Found in abydos/phonetic/_double_metaphone.py - About 2 hrs to fix

        Consider simplifying this complex logical expression.
        Open

                        if _get_at(current + 1) == 'H':
                            if (current > 0) and not _is_vowel(current - 1):
                                primary, secondary = _metaph_add('K')
                                current += 2
                                continue
        Severity: Critical
        Found in abydos/phonetic/_double_metaphone.py - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                              if (current > 0) and not _is_vowel(current - 1):
                                  primary, secondary = _metaph_add('K')
                                  current += 2
                                  continue
          
          
          Severity: Major
          Found in abydos/phonetic/_double_metaphone.py - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                            if _string_at(current, 4, {'JOSE'}) or _string_at(
                                0, 4, {'SAN '}
                            ):
                                if (
                                    (current == 0) and (_get_at(current + 4) == ' ')
            Severity: Major
            Found in abydos/phonetic/_double_metaphone.py - About 1 hr to fix

              Avoid deeply nested control flow statements.
              Open

                                      if (
                                          (current > 2)
                                          and (_get_at(current - 1) == 'U')
                                          and (
                                              _string_at(
              Severity: Major
              Found in abydos/phonetic/_double_metaphone.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if _get_at(current + 2) == 'I':
                                            primary, secondary = _metaph_add('J')
                                        else:
                                            primary, secondary = _metaph_add('K')
                                        current += 2
                Severity: Major
                Found in abydos/phonetic/_double_metaphone.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if current > 0:
                                              if _string_at(0, 2, {'MC'}):
                                                  # e.g., "McHugh"
                                                  primary, secondary = _metaph_add('K')
                                              else:
                  Severity: Major
                  Found in abydos/phonetic/_double_metaphone.py - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if (
                                                (current == 1) and _get_at(current - 1) == 'A'
                                            ) or _string_at((current - 1), 5, {'UCCEE', 'UCCES'}):
                                                primary, secondary = _metaph_add('KS')
                                            # 'bacci', 'bertucci', other italian
                    Severity: Major
                    Found in abydos/phonetic/_double_metaphone.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if _string_at(
                                                  (current + 3),
                                                  2,
                                                  {'OO', 'ER', 'EN', 'UY', 'ED', 'EM'},
                                              ):
                      Severity: Major
                      Found in abydos/phonetic/_double_metaphone.py - About 45 mins to fix

                        Refactor this function to reduce its Cognitive Complexity from 401 to the 15 allowed.
                        Open

                            def encode(self, word: str) -> str:

                        Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

                        See

                        Too many nested blocks (6/5)
                        Open

                                while True:

                        Used when a function or a method has too many nested blocks. This makes the code less understandable and maintainable.

                        Unnecessary elif after continue
                        Open

                                    if _get_at(current) in {'A', 'E', 'I', 'O', 'U', 'Y'}:

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary else after continue
                        Open

                                                if _string_at(

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary elif after continue
                        Open

                                        if _string_at(current, 2, {'WR'}):

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Too many branches (169/12)
                        Open

                            def encode(self, word: str) -> str:

                        Used when a function or method has too many branches, making it hard to follow.

                        Unnecessary elif after continue
                        Open

                                        if _string_at(current, 4, {'JOSE'}) or _string_at(

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary else after continue
                        Open

                                            if _string_at(

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary elif after continue
                        Open

                                        if _get_at(current + 1) == 'H':

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary elif after continue
                        Open

                                            if current > 0 and _string_at(current, 4, {'CHAE'}):

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Too many nested blocks (6/5)
                        Open

                                while True:

                        Used when a function or a method has too many nested blocks. This makes the code less understandable and maintainable.

                        Unnecessary elif after continue
                        Open

                                        if _string_at((current - 1), 3, {'ISL', 'YSL'}):

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary elif after continue
                        Open

                                        if (

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Too many boolean expressions in if statement (7/5)
                        Open

                                                (

                        Used when an if statement contains too many boolean expressions.

                        Too many boolean expressions in if statement (6/5)
                        Open

                                            current > 1

                        Used when an if statement contains too many boolean expressions.

                        Too many boolean expressions in if statement (6/5)
                        Open

                                                (

                        Used when an if statement contains too many boolean expressions.

                        Unnecessary elif after continue
                        Open

                                        if (

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary elif after continue
                        Open

                                        if _get_at(current + 1) == 'H':

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary else after continue
                        Open

                                            if _string_at((current + 2), 1, {'I', 'E', 'Y'}):

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Too many statements (435/50)
                        Open

                            def encode(self, word: str) -> str:

                        Used when a function or method has too many statements. You should then split it in smaller functions / methods.

                        Unnecessary elif after continue
                        Open

                                            if (current > 0) and not _is_vowel(current - 1):

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Unnecessary elif after continue
                        Open

                                        if _string_at(current, 4, {'TION'}):

                        Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

                        Either merge this branch with the identical one on line "295" or change one of the implementations.
                        Open

                                            primary, secondary = _metaph_add('K')
                                            current += 2
                                            continue

                        Having two branches in the same if structure with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then they should be combined.

                        Noncompliant Code Example

                        if 0 <= a < 10:
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        elif 20 <= a < 50:
                            do_the_thing()  # Noncompliant; duplicates first condition
                        else:
                            do_the_rest()
                        
                        b = 4 if a > 12 else 4
                        

                        Compliant Solution

                        if (0 <= a < 10) or (20 <= a < 50):
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        else:
                            do_the_rest()
                        
                        b = 4
                        

                        or

                        if 0 <= a < 10:
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        elif 20 <= a < 50:
                            do_the_third_thing()
                        else:
                            do_the_rest()
                        
                        b = 8 if a > 12 else 4
                        

                        Either merge this branch with the identical one on line "295" or change one of the implementations.
                        Open

                                            primary, secondary = _metaph_add('K')
                                            current += 2
                                            continue

                        Having two branches in the same if structure with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then they should be combined.

                        Noncompliant Code Example

                        if 0 <= a < 10:
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        elif 20 <= a < 50:
                            do_the_thing()  # Noncompliant; duplicates first condition
                        else:
                            do_the_rest()
                        
                        b = 4 if a > 12 else 4
                        

                        Compliant Solution

                        if (0 <= a < 10) or (20 <= a < 50):
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        else:
                            do_the_rest()
                        
                        b = 4
                        

                        or

                        if 0 <= a < 10:
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        elif 20 <= a < 50:
                            do_the_third_thing()
                        else:
                            do_the_rest()
                        
                        b = 8 if a > 12 else 4
                        

                        Either merge this branch with the identical one on line "887" or change one of the implementations.
                        Open

                                            primary, secondary = _metaph_add('X')
                                            current += 3
                                            continue

                        Having two branches in the same if structure with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then they should be combined.

                        Noncompliant Code Example

                        if 0 <= a < 10:
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        elif 20 <= a < 50:
                            do_the_thing()  # Noncompliant; duplicates first condition
                        else:
                            do_the_rest()
                        
                        b = 4 if a > 12 else 4
                        

                        Compliant Solution

                        if (0 <= a < 10) or (20 <= a < 50):
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        else:
                            do_the_rest()
                        
                        b = 4
                        

                        or

                        if 0 <= a < 10:
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        elif 20 <= a < 50:
                            do_the_third_thing()
                        else:
                            do_the_rest()
                        
                        b = 8 if a > 12 else 4
                        

                        Either merge this branch with the identical one on line "585" or change one of the implementations.
                        Open

                                            primary, secondary = _metaph_add('K', 'J')
                                            current += 2
                                            continue

                        Having two branches in the same if structure with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then they should be combined.

                        Noncompliant Code Example

                        if 0 <= a < 10:
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        elif 20 <= a < 50:
                            do_the_thing()  # Noncompliant; duplicates first condition
                        else:
                            do_the_rest()
                        
                        b = 4 if a > 12 else 4
                        

                        Compliant Solution

                        if (0 <= a < 10) or (20 <= a < 50):
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        else:
                            do_the_rest()
                        
                        b = 4
                        

                        or

                        if 0 <= a < 10:
                            do_the_thing()
                        elif 10 <= a < 20:
                            do_the_other_thing()
                        elif 20 <= a < 50:
                            do_the_third_thing()
                        else:
                            do_the_rest()
                        
                        b = 8 if a > 12 else 4
                        

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (current - 2), 4, {'WICZ'}

                        TODO (current - 2), 4, {'WICZ'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (current == 1) and (_get_at(0) == 'M')

                        TODO (current == 1) and (getat(0) == 'M') ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                    and (

                        TODO and ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (current == 0) and (_get_at(current + 4) == ' ')

                        TODO (current == 0) and (getat(current + 4) == ' ') ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (current == last)

                        TODO (current == last) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (current == 0)

                        TODO (current == 0) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and not _string_at((current - 1), 1, {'E', 'I'})

                        TODO and not stringat((current - 1), 1, {'E', 'I'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            _is_vowel(current + 1) or _string_at(current, 2, {'WH'})

                        TODO isvowel(current + 1) or stringat(current, 2, {'WH'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                and not _string_at(0, 5, {'CHORE'})

                        TODO and not stringat(0, 5, {'CHORE'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                or _string_at((current + 2), 1, {'T', 'S'})

                        TODO or stringat((current + 2), 1, {'T', 'S'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and not _string_at(0, 6, {'DANGER', 'RANGER', 'MANGER'})

                        TODO and not stringat(0, 6, {'DANGER', 'RANGER', 'MANGER'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            _is_vowel(current - 1)

                        TODO isvowel(current - 1) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (current - 2), 2, {'AI', 'OI'}

                        TODO (current - 2), 2, {'AI', 'OI'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            or _string_at(

                        TODO or stringat( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                or _string_at(

                        TODO or stringat( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                and not _slavo_germanic()

                        TODO and not slavogermanic() ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and _string_at((current + 1), 1, {'M', 'N', 'L', 'W'})

                        TODO and stringat((current + 1), 1, {'M', 'N', 'L', 'W'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            0, 4, {'SAN '}

                        TODO 0, 4, {'SAN '} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                    {'OO', 'ER', 'EN', 'UY', 'ED', 'EM'},

                        TODO {'OO', 'ER', 'EN', 'UY', 'ED', 'EM'}, ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            ((current == last) and _is_vowel(current - 1))

                        TODO ((current == last) and isvowel(current - 1)) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and not _is_vowel(current - 2)

                        TODO and not isvowel(current - 2) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                and (_get_at(current + 1) != 'Y')

                        TODO and (getat(current + 1) != 'Y') ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (current + 1), 1, {'E', 'I', 'Y'}

                        TODO (current + 1), 1, {'E', 'I', 'Y'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and not _slavo_germanic()

                        TODO and not slavogermanic() ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (current + 1), 4, {'HEIM', 'HOEK', 'HOLM', 'HOLZ'}

                        TODO (current + 1), 4, {'HEIM', 'HOEK', 'HOLM', 'HOLZ'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                        and (_get_at(3) != 'W')

                        TODO and (getat(3) != 'W') ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            current > 1

                        TODO current > 1 ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                    (current == 1) and _get_at(current - 1) == 'A'

                        TODO (current == 1) and getat(current - 1) == 'A' ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (

                        TODO ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                # e.g., 'bough'

                        TODO # e.g., 'bough' ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                    (current > 2)

                        TODO (current > 2) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            or (_get_at(current + 1) == 'M')

                        TODO or (getat(current + 1) == 'M') ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            current, 4, {'SIAN'}

                        TODO current, 4, {'SIAN'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                        and not _is_vowel(3)

                        TODO and not isvowel(3) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                current == 0

                        TODO current == 0 ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (current + 2), 1, {'I', 'E', 'H'}

                        TODO (current + 2), 1, {'I', 'E', 'H'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                or _string_at(0, 3, {'SCH'})

                        TODO or stringat(0, 3, {'SCH'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and not _slavo_germanic()

                        TODO and not slavogermanic() ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                    and (_get_at(current - 1) == 'U')

                        TODO and (getat(current - 1) == 'U') ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (

                        TODO ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            current + 1

                        TODO current + 1 ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and (

                        TODO and ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (

                        TODO ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                or (

                        TODO or ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                # e.g., 'broughton'

                        TODO # e.g., 'broughton' ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and (

                        TODO and ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                and _string_at(

                        TODO and stringat( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and _string_at((current - 2), 2, {'IE'})

                        TODO and stringat((current - 2), 2, {'IE'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and not _string_at((current - 4), 2, {'ME', 'MA'})

                        TODO and not stringat((current - 4), 2, {'ME', 'MA'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            or _string_at(0, 3, {'SCH'})

                        TODO or stringat(0, 3, {'SCH'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and _string_at((current - 1), 3, {'ACH'})

                        TODO and stringat((current - 1), 3, {'ACH'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                or (

                        TODO or ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                and _is_vowel(0)

                        TODO and isvowel(0) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (current + 1), 1, {'L', 'T', 'K', 'S', 'N', 'M', 'B', 'Z'}

                        TODO (current + 1), 1, {'L', 'T', 'K', 'S', 'N', 'M', 'B', 'Z'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                    (current + 3),

                        TODO (current + 3), ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                _string_at((current + 2), 2, {'OM', 'AM'})

                        TODO stringat((current + 2), 2, {'OM', 'AM'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                or _string_at(0, 4, {'VAN ', 'VON '})

                        TODO or stringat(0, 4, {'VAN ', 'VON '}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and (

                        TODO and ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                and (

                        TODO and ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                not _string_at((current + 2), 2, {'EY'})

                        TODO not stringat((current + 2), 2, {'EY'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                _string_at(0, 4, {'VAN ', 'VON '})

                        TODO stringat(0, 4, {'VAN ', 'VON '}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (current == last)

                        TODO (current == last) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            _string_at((current + 1), 2, {'LI'})

                        TODO stringat((current + 1), 2, {'LI'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and not _string_at((current - 1), 3, {'RGY', 'OGY'})

                        TODO and not stringat((current - 1), 3, {'RGY', 'OGY'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            current, 3, {'TTH'}

                        TODO current, 3, {'TTH'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                # 'architect but not 'arch', 'orchestra', 'orchid'

                        TODO # 'architect but not 'arch', 'orchestra', 'orchid' ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (current + 1), 1, {'C', 'K', 'Q'}

                        TODO (current + 1), 1, {'C', 'K', 'Q'} ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                and not _slavo_germanic()

                        TODO and not slavogermanic() ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (current == (length - 3))

                        TODO (current == (length - 3)) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and not _slavo_germanic()

                        TODO and not slavogermanic() ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            or _string_at(

                        TODO or stringat( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (

                        TODO ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            # 'dumb', 'thumb'

                        TODO # 'dumb', 'thumb' ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                or (

                        TODO or ( ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                (current == 1)

                        TODO (current == 1) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            (_get_at(current + 1) == 'Y')

                        TODO (getat(current + 1) == 'Y') ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                    2,

                        TODO 2, ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                        (current == 0)

                        TODO (current == 0) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                                or _string_at(0, 3, {'SCH'})

                        TODO or stringat(0, 3, {'SCH'}) ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            and ((current > 0) and _get_at(current - 1) != 'T')

                        TODO and ((current > 0) and getat(current - 1) != 'T') ^ |

                        Wrong hanging indentation before block (add 4 spaces).
                        Open

                                            _slavo_germanic()

                        TODO slavogermanic() ^ |

                        Too many lines in module (1015/1000)
                        Open

                        # Copyright 2014-2020 by Christopher C. Little.

                        Used when a module has too many lines, reducing its readability.

                        There are no issues that match your filters.

                        Category
                        Status