chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

                                and src[i + matches].isalpha()
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO and src[i + matches].isalpha() ^ |

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

                                and (priority0 != ord('-'))
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO and (priority0 != ord('-')) ^ |

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

                    'L',

TODO 'L', ^ |

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

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

TODO 'D', ^ |

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

                'Ü',
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

                                    cast(str, _phonet_rules[pos0])[0] == char0
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO cast(str, phonetrules[pos0])[0] == char0 ^ |

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

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

Used when an if statement contains too many boolean expressions.

Simplify chained comparison between the operands
Open

                                    if (end3 >= start4) and (start4 >= 0):
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

This message is emitted when pylint encounters boolean operation likea < b and b < c, suggesting instead to refactor it to a < b < c

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

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

                and nxch in self._uc_c_set
Severity: Info
Found in abydos/phonetic/_henry_early.py by pylint

TODO and nxch in self.ucc_set ^ |

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

                        cast(str, _phonet_rules[pos])[0] == char
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO cast(str, phonetrules[pos])[0] == char ^ |

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

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

TODO and ( ^ |

Consider using tuple unpacking for swapping variables
Open

                        pos = start1
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 (7/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.

Severity
Category
Status
Source
Language