chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

                and word[i : i + 3] == 'SCH'
Severity: Info
Found in abydos/phonetic/_nysiis.py by pylint

TODO and word[i : i + 3] == 'SCH' ^ |

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

                or word[i + 1 : i + 2] not in self._uc_v_set
Severity: Info
Found in abydos/phonetic/_nysiis.py by pylint

TODO or word[i + 1 : i + 2] not in self.ucv_set ^ |

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

                            i,
Severity: Info
Found in abydos/phonetic/_haase.py by pylint

TODO i, ^ |

Too many branches (29/12)
Open

    def encode(self, word: str) -> str:
Severity: Info
Found in abydos/phonetic/_dolby.py by pylint

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

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

                    current, 3, {'TTH'}

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

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

            tar: str,
Severity: Info
Found in abydos/phonetic/_phonix.py by pylint

TODO tar: str, ^ |

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

            'O',
Severity: Info
Found in abydos/phonetic/_waahlin.py by pylint

TODO 'O', ^ |

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

            'O',
Severity: Info
Found in abydos/phonetic/_waahlin.py by pylint

TODO 'O', ^ |

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

                'NT',
Severity: Info
Found in abydos/phonetic/_dolby.py by pylint

TODO 'NT', ^ |

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

                'N',
Severity: Info
Found in abydos/phonetic/_dolby.py by pylint

TODO 'N', ^ |

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 + 1

TODO current + 1 ^ |

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') ^ |

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 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 (99/50)
Open

    def encode(self, word: str) -> str:
Severity: Info
Found in abydos/phonetic/_henry_early.py by pylint

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

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

                'Ì',
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO 'Ì', ^ |

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

                'Ù',
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO 'Ù', ^ |

Severity
Category
Status
Source
Language