chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

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

TODO 'Ç', ^ |

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.

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 'Š', ^ |

Variable name n doesn't conform to snake_case naming style
Open

        for n in range(1, len(shifted_values)):
Severity: Info
Found in abydos/phonetic/_eudex.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

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 'Ã', ^ |

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

                                (len(src) > (i + matches))
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO (len(src) > (i + matches)) ^ |

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

                                    and (
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO and ( ^ |

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

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

TODO 'Ð', ^ |

Consider using enumerate instead of iterating with range and len
Open

            for i in range(len(_phonet_rules)):
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.

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

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

TODO 'Û', ^ |

Too many local variables (29/15)
Open

        def _phonet(term: str, mode: int, lang: str) -> str:
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Used when a function or method has too many local variables.

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

                        cast(str, _phonet_rules[i + 1])
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO cast(str, phonetrules[i + 1]) ^ |

Consider using tuple unpacking for swapping variables
Open

                        pos = end1
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

You do not have to use a temporary variable in order to swap variables. Using tuple unpacking to directly swap variables makes the intention more clear.

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

                                        (start3 < 0) or (start4 < start3)
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO (start3 < 0) or (start4 < start3) ^ |

Consider using tuple unpacking for swapping variables
Open

                                        pos0 = end3
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

You do not have to use a temporary variable in order to swap variables. Using tuple unpacking to directly swap variables makes the intention more clear.

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

                    'K',

TODO 'K', ^ |

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

                    'M',

TODO 'M', ^ |

Severity
Category
Status
Source
Language