LucaCappelletti94/keras_synthetic_genome_sequence

View on GitHub

Showing 4 of 4 total issues

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

    def __init__(
Severity: Major
Found in keras_synthetic_genome_sequence/multivariate_gap_sequence.py - About 1 hr to fix

    Function _generate_synthetic_gaps has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def _generate_synthetic_gaps(
    Severity: Minor
    Found in keras_synthetic_genome_sequence/utils/generate_synthetic_gaps.py - About 45 mins to fix

      Function generate_synthetic_gaps has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def generate_synthetic_gaps(
      Severity: Minor
      Found in keras_synthetic_genome_sequence/utils/generate_synthetic_gaps.py - About 45 mins to fix

        Function __init__ has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

            def __init__(
                self,
                assembly: str,
                bed: Union[pd.DataFrame, str],
                gaps_mean: np.ndarray,
        Severity: Minor
        Found in keras_synthetic_genome_sequence/multivariate_gap_sequence.py - About 25 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

        Severity
        Category
        Status
        Source
        Language