joaomcteixeira/python-bioplottemplates

View on GitHub

Showing 8 of 8 total issues

Function plot has 25 arguments (exceeds 4 allowed). Consider refactoring.
Open

def plot(
Severity: Major
Found in src/bioplottemplates/plots/param.py - About 3 hrs to fix

    Function plot has 20 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def plot(
    Severity: Major
    Found in src/bioplottemplates/plots/label_dots.py - About 2 hrs to fix

      Function plot has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

      def plot(
              x_labels,
              y_data,
              title=None,
              xlabel=None,
      Severity: Minor
      Found in src/bioplottemplates/plots/label_dots.py - About 1 hr 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

      Function __call__ has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def __call__(self, parser, namespace, values, option_string=None):
              """Executes."""
      
              bool_value = {
                  'true': True,
      Severity: Minor
      Found in src/bioplottemplates/libs/libcli.py - About 1 hr 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

      Function plot has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      def plot(
              x_data,
              y_data,
              *,
              labels="No label provided",
      Severity: Minor
      Found in src/bioplottemplates/plots/param.py - About 1 hr to fix

        Function exec_in_env has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

        def exec_in_env():
            env_path = join(base_path, ".tox", "bootstrap")
            if sys.platform == "win32":
                bin_path = join(env_path, "Scripts")
            else:
        Severity: Minor
        Found in ci/bootstrap.py - About 55 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

        Function plot has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

        def plot(
                x_data,
                y_data,
                *,
                labels="No label provided",
        Severity: Minor
        Found in src/bioplottemplates/plots/param.py - About 45 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

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

        def main():
            import jinja2
            import matrix
        
        
        
        Severity: Minor
        Found in ci/bootstrap.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