chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Too many nested blocks (6/5)
Open

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

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 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.

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

                and prev in self._uc_vy_set
Severity: Info
Found in abydos/phonetic/_henry_early.py by pylint

TODO and prev in self.ucvy_set ^ |

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

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

TODO 'N', ^ |

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

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

TODO 'Â', ^ |

Too many lines in module (1745/1000)
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

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

Too many nested blocks (6/5)
Open

            while i < len(src):
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

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, 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.

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

                    'N',

TODO 'N', ^ |

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

                word[1:2] in self._uc_c_set - {'M', 'N'}
Severity: Info
Found in abydos/phonetic/_henry_early.py by pylint

TODO word[1:2] in self.ucc_set - {'M', 'N'} ^ |

Too many branches (49/12)
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 branches, making it hard to follow.

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

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

TODO or ( ^ |

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

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

TODO rule ^ |

Consider using tuple unpacking for swapping variables
Open

                                        pos0 = start3
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.

Too many nested blocks (6/5)
Open

            while i < len(src):
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

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

Unused Counter imported from typing as TCounter
Open

from typing import Counter as TCounter, Optional, Tuple, Union, cast
Severity: Minor
Found in abydos/phonetic/_phonet.py by pylint

Used when an imported module or variable is not used.

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

                    'V',

TODO 'V', ^ |

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.

Severity
Category
Status
Source
Language