chrislit/abydos

View on GitHub
abydos/distance/_fellegi_sunter.py

Summary

Maintainability
A
1 hr
Test Coverage

Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def __init__(
Severity: Minor
Found in abydos/distance/_fellegi_sunter.py - About 35 mins to fix

    Function sim_score has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

        def sim_score(self, src: str, tar: str) -> float:
            """Return the Fellegi-Sunter similarity of two strings.
    
            Parameters
            ----------
    Severity: Minor
    Found in abydos/distance/_fellegi_sunter.py - About 35 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

            self,
    Severity: Info
    Found in abydos/distance/_fellegi_sunter.py by pylint

    TODO self, ^ |

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

            **kwargs: Any
    Severity: Info
    Found in abydos/distance/_fellegi_sunter.py by pylint

    TODO **kwargs: Any ^ |

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

            tokenizer: Optional[_Tokenizer] = None,
    Severity: Info
    Found in abydos/distance/_fellegi_sunter.py by pylint

    TODO tokenizer: Optional[_Tokenizer] = None, ^ |

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

            simplified: bool = False,
    Severity: Info
    Found in abydos/distance/_fellegi_sunter.py by pylint

    TODO simplified: bool = False, ^ |

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

            intersection_type: str = 'crisp',
    Severity: Info
    Found in abydos/distance/_fellegi_sunter.py by pylint

    TODO intersection_type: str = 'crisp', ^ |

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

            mismatch_factor: float = 0.5,
    Severity: Info
    Found in abydos/distance/_fellegi_sunter.py by pylint

    TODO mismatch_factor: float = 0.5, ^ |

    There are no issues that match your filters.

    Category
    Status