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
----------
- Read upRead up
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
----------
- Read upRead up
- Exclude checks
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. |
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
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`.
- Read upRead up
- Exclude checks
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. |
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
Consider simplifying this complex logical expression. Open
if (
current > 1
and not _is_vowel(current - 2)
and _string_at((current - 1), 3, {'ACH'})
and (
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
Consider simplifying this complex logical expression. Open
if (current > 0) and not _is_vowel(current - 1):
primary, secondary = _metaph_add('K')
current += 2
continue
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) == ' ')
Avoid deeply nested control flow statements. Open
if (
(current > 2)
and (_get_at(current - 1) == 'U')
and (
_string_at(
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
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:
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
Avoid deeply nested control flow statements. Open
if _string_at(
(current + 3),
2,
{'OO', 'ER', 'EN', 'UY', 'ED', 'EM'},
):
Refactor this function to reduce its Cognitive Complexity from 401 to the 15 allowed. Open
def encode(self, word: str) -> str:
- Read upRead up
- Exclude checks
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:
- Read upRead up
- Exclude checks
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'}:
- Read upRead up
- Exclude checks
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(
- Read upRead up
- Exclude checks
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'}):
- Read upRead up
- Exclude checks
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:
- Read upRead up
- Exclude checks
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(
- Read upRead up
- Exclude checks
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(
- Read upRead up
- Exclude checks
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':
- Read upRead up
- Exclude checks
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'}):
- Read upRead up
- Exclude checks
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:
- Read upRead up
- Exclude checks
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'}):
- Read upRead up
- Exclude checks
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 (
- Read upRead up
- Exclude checks
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
(
- Read upRead up
- Exclude checks
Used when an if statement contains too many boolean expressions.
Too many boolean expressions in if statement (6/5) Open
current > 1
- Read upRead up
- Exclude checks
Used when an if statement contains too many boolean expressions.
Too many boolean expressions in if statement (6/5) Open
(
- Read upRead up
- Exclude checks
Used when an if statement contains too many boolean expressions.
Unnecessary elif
after continue
Open
if (
- Read upRead up
- Exclude checks
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':
- Read upRead up
- Exclude checks
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'}):
- Read upRead up
- Exclude checks
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:
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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'}):
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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'}
- Read upRead up
- Exclude checks
TODO (current - 2), 4, {'WICZ'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == 1) and (_get_at(0) == 'M')
- Read upRead up
- Exclude checks
TODO (current == 1) and (getat(0) == 'M') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == 0) and (_get_at(current + 4) == ' ')
- Read upRead up
- Exclude checks
TODO (current == 0) and (getat(current + 4) == ' ') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == last)
- Read upRead up
- Exclude checks
TODO (current == last) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == 0)
- Read upRead up
- Exclude checks
TODO (current == 0) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _string_at((current - 1), 1, {'E', 'I'})
- Read upRead up
- Exclude checks
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'})
- Read upRead up
- Exclude checks
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'})
- Read upRead up
- Exclude checks
TODO and not stringat(0, 5, {'CHORE'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at((current + 2), 1, {'T', 'S'})
- Read upRead up
- Exclude checks
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'})
- Read upRead up
- Exclude checks
TODO and not stringat(0, 6, {'DANGER', 'RANGER', 'MANGER'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
_is_vowel(current - 1)
- Read upRead up
- Exclude checks
TODO isvowel(current - 1) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current - 2), 2, {'AI', 'OI'}
- Read upRead up
- Exclude checks
TODO (current - 2), 2, {'AI', 'OI'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(
- Read upRead up
- Exclude checks
TODO or stringat( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(
- Read upRead up
- Exclude checks
TODO or stringat( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _slavo_germanic()
- Read upRead up
- Exclude checks
TODO and not slavogermanic() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and _string_at((current + 1), 1, {'M', 'N', 'L', 'W'})
- Read upRead up
- Exclude checks
TODO and stringat((current + 1), 1, {'M', 'N', 'L', 'W'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
0, 4, {'SAN '}
- Read upRead up
- Exclude checks
TODO 0, 4, {'SAN '} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
{'OO', 'ER', 'EN', 'UY', 'ED', 'EM'},
- Read upRead up
- Exclude checks
TODO {'OO', 'ER', 'EN', 'UY', 'ED', 'EM'}, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
((current == last) and _is_vowel(current - 1))
- Read upRead up
- Exclude checks
TODO ((current == last) and isvowel(current - 1)) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _is_vowel(current - 2)
- Read upRead up
- Exclude checks
TODO and not isvowel(current - 2) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (_get_at(current + 1) != 'Y')
- Read upRead up
- Exclude checks
TODO and (getat(current + 1) != 'Y') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current + 1), 1, {'E', 'I', 'Y'}
- Read upRead up
- Exclude checks
TODO (current + 1), 1, {'E', 'I', 'Y'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _slavo_germanic()
- Read upRead up
- Exclude checks
TODO and not slavogermanic() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current + 1), 4, {'HEIM', 'HOEK', 'HOLM', 'HOLZ'}
- Read upRead up
- Exclude checks
TODO (current + 1), 4, {'HEIM', 'HOEK', 'HOLM', 'HOLZ'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (_get_at(3) != 'W')
- Read upRead up
- Exclude checks
TODO and (getat(3) != 'W') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
current > 1
- Read upRead up
- Exclude checks
TODO current > 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == 1) and _get_at(current - 1) == 'A'
- Read upRead up
- Exclude checks
TODO (current == 1) and getat(current - 1) == 'A' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
# e.g., 'bough'
- Read upRead up
- Exclude checks
TODO # e.g., 'bough' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current > 2)
- Read upRead up
- Exclude checks
TODO (current > 2) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or (_get_at(current + 1) == 'M')
- Read upRead up
- Exclude checks
TODO or (getat(current + 1) == 'M') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
current, 4, {'SIAN'}
- Read upRead up
- Exclude checks
TODO current, 4, {'SIAN'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _is_vowel(3)
- Read upRead up
- Exclude checks
TODO and not isvowel(3) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
current == 0
- Read upRead up
- Exclude checks
TODO current == 0 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current + 2), 1, {'I', 'E', 'H'}
- Read upRead up
- Exclude checks
TODO (current + 2), 1, {'I', 'E', 'H'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(0, 3, {'SCH'})
- Read upRead up
- Exclude checks
TODO or stringat(0, 3, {'SCH'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _slavo_germanic()
- Read upRead up
- Exclude checks
TODO and not slavogermanic() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (_get_at(current - 1) == 'U')
- Read upRead up
- Exclude checks
TODO and (getat(current - 1) == 'U') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
current + 1
- Read upRead up
- Exclude checks
TODO current + 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or (
- Read upRead up
- Exclude checks
TODO or ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
# e.g., 'broughton'
- Read upRead up
- Exclude checks
TODO # e.g., 'broughton' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and _string_at(
- Read upRead up
- Exclude checks
TODO and stringat( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and _string_at((current - 2), 2, {'IE'})
- Read upRead up
- Exclude checks
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'})
- Read upRead up
- Exclude checks
TODO and not stringat((current - 4), 2, {'ME', 'MA'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(0, 3, {'SCH'})
- Read upRead up
- Exclude checks
TODO or stringat(0, 3, {'SCH'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and _string_at((current - 1), 3, {'ACH'})
- Read upRead up
- Exclude checks
TODO and stringat((current - 1), 3, {'ACH'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or (
- Read upRead up
- Exclude checks
TODO or ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and _is_vowel(0)
- Read upRead up
- Exclude checks
TODO and isvowel(0) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current + 1), 1, {'L', 'T', 'K', 'S', 'N', 'M', 'B', 'Z'}
- Read upRead up
- Exclude checks
TODO (current + 1), 1, {'L', 'T', 'K', 'S', 'N', 'M', 'B', 'Z'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current + 3),
- Read upRead up
- Exclude checks
TODO (current + 3), ^ |
Wrong hanging indentation before block (add 4 spaces). Open
_string_at((current + 2), 2, {'OM', 'AM'})
- Read upRead up
- Exclude checks
TODO stringat((current + 2), 2, {'OM', 'AM'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(0, 4, {'VAN ', 'VON '})
- Read upRead up
- Exclude checks
TODO or stringat(0, 4, {'VAN ', 'VON '}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
not _string_at((current + 2), 2, {'EY'})
- Read upRead up
- Exclude checks
TODO not stringat((current + 2), 2, {'EY'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
_string_at(0, 4, {'VAN ', 'VON '})
- Read upRead up
- Exclude checks
TODO stringat(0, 4, {'VAN ', 'VON '}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == last)
- Read upRead up
- Exclude checks
TODO (current == last) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
_string_at((current + 1), 2, {'LI'})
- Read upRead up
- Exclude checks
TODO stringat((current + 1), 2, {'LI'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _string_at((current - 1), 3, {'RGY', 'OGY'})
- Read upRead up
- Exclude checks
TODO and not stringat((current - 1), 3, {'RGY', 'OGY'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
current, 3, {'TTH'}
- Read upRead up
- Exclude checks
TODO current, 3, {'TTH'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
# 'architect but not 'arch', 'orchestra', 'orchid'
- Read upRead up
- Exclude checks
TODO # 'architect but not 'arch', 'orchestra', 'orchid' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current + 1), 1, {'C', 'K', 'Q'}
- Read upRead up
- Exclude checks
TODO (current + 1), 1, {'C', 'K', 'Q'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _slavo_germanic()
- Read upRead up
- Exclude checks
TODO and not slavogermanic() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == (length - 3))
- Read upRead up
- Exclude checks
TODO (current == (length - 3)) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _slavo_germanic()
- Read upRead up
- Exclude checks
TODO and not slavogermanic() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(
- Read upRead up
- Exclude checks
TODO or stringat( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
# 'dumb', 'thumb'
- Read upRead up
- Exclude checks
TODO # 'dumb', 'thumb' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or (
- Read upRead up
- Exclude checks
TODO or ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == 1)
- Read upRead up
- Exclude checks
TODO (current == 1) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(_get_at(current + 1) == 'Y')
- Read upRead up
- Exclude checks
TODO (getat(current + 1) == 'Y') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
2,
- Read upRead up
- Exclude checks
TODO 2, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == 0)
- Read upRead up
- Exclude checks
TODO (current == 0) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(0, 3, {'SCH'})
- Read upRead up
- Exclude checks
TODO or stringat(0, 3, {'SCH'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and ((current > 0) and _get_at(current - 1) != 'T')
- Read upRead up
- Exclude checks
TODO and ((current > 0) and getat(current - 1) != 'T') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
_slavo_germanic()
- Read upRead up
- Exclude checks
TODO slavogermanic() ^ |
Too many lines in module (1015/1000) Open
# Copyright 2014-2020 by Christopher C. Little.
- Read upRead up
- Exclude checks
Used when a module has too many lines, reducing its readability.