chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

    mean_func: Callable[[Sequence[float]], float] = amean,
Severity: Info
Found in abydos/stats/_pairwise.py by pylint

TODO mean_func: Callable[[Sequence[float]], float] = amean, ^ |

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

            'enes',
Severity: Info
Found in abydos/stemmer/_snowball_danish.py by pylint

TODO 'enes', ^ |

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

            and word[-1] not in self._vowels
Severity: Info
Found in abydos/stemmer/_snowball_danish.py by pylint

TODO and word[-1] not in self._vowels ^ |

Too few public methods (1/2)
Open

class SnowballDanish(_Snowball):
Severity: Info
Found in abydos/stemmer/_snowball_danish.py by pylint

Used when class has too few public methods, so be sure it's really worth it.

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

                and (
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

TODO and ( ^ |

Refactor this function to reduce its Cognitive Complexity from 51 to the 15 allowed.
Open

    def alignments(
Severity: Critical
Found in abydos/distance/_covington.py by sonar-python

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

TODO found
Open

    # TODO: use TypedDict when/if it's officially supported
Severity: Minor
Found in stubs/numpy/__init__.pyi by fixme

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

    mean_func: Callable[[Sequence[float]], float] = amean,
Severity: Info
Found in abydos/stats/_mean.py by pylint

TODO mean_func: Callable[[Sequence[float]], float] = amean, ^ |

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

            'gg',
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

TODO 'gg', ^ |

Merge this if statement with the enclosing one.
Open

                if (
Severity: Major
Found in abydos/distance/_synoname.py by sonar-python

Merging collapsible if statements increases the code's readability.

Noncompliant Code Example

if condition1:
    if condition2:
        # ...

Compliant Solution

if condition1 and condition2:
    # ...

Refactor this function to reduce its Cognitive Complexity from 55 to the 15 allowed.
Open

    def _alignment_matrix(

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

Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.
Open

    def sim_score(self, src: str, tar: str) -> float:
Severity: Critical
Found in abydos/distance/_guth.py by sonar-python

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

Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed.
Open

    def sim(self, src: str, tar: str) -> float:
Severity: Critical
Found in abydos/distance/_guth.py by sonar-python

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

Refactor this function to reduce its Cognitive Complexity from 53 to the 15 allowed.
Open

    def dist_abs(self, src: str, tar: str) -> float:
Severity: Critical
Found in abydos/distance/_sift4.py by sonar-python

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

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

    nums: Sequence[float],
Severity: Info
Found in abydos/stats/_mean.py by pylint

TODO nums: Sequence[float], ^ |

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

    ddof: int = 0,
Severity: Info
Found in abydos/stats/_mean.py by pylint

TODO ddof: int = 0, ^ |

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

        tn: float = 0.0,
Severity: Info
Found in abydos/stats/_confusion_table.py by pylint

TODO tn: float = 0.0, ^ |

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

        fn: float = 0.0,
Severity: Info
Found in abydos/stats/_confusion_table.py by pylint

TODO fn: float = 0.0, ^ |

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

                and self._fp == other.false_pos()
Severity: Info
Found in abydos/stats/_confusion_table.py by pylint

TODO and self.fp == other.falsepos() ^ |

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

            'ss',
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

TODO 'ss', ^ |

Severity
Category
Status
Source
Language