distributed-system-analysis/run-perf

View on GitHub

Showing 32 of 84 total issues

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

    def add(self, suffix, name, difference, weight, src=None):
Severity: Minor
Found in runperf/result.py - About 45 mins to fix

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

        def __init__(self, host, workers, base_output_path, metadata, extra):
    Severity: Minor
    Found in runperf/tests.py - About 45 mins to fix

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

          def __init__(self, host, workers, base_output_path, metadata, extra):
      Severity: Minor
      Found in runperf/tests.py - About 45 mins to fix

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

            def __init__(self, host, workers, base_output_path, metadata, extra):
        Severity: Minor
        Found in runperf/tests.py - About 45 mins to fix

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

              def __init__(self, host, workers, base_output_path, metadata, extra):
          Severity: Minor
          Found in runperf/tests.py - About 45 mins to fix

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

                def __init__(self, host, workers, base_output_path, metadata, extra):
            Severity: Minor
            Found in runperf/tests.py - About 35 mins to fix

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

              def wait_for(func, timeout, step=1.0, args=None, kwargs=None):
              Severity: Minor
              Found in runperf/utils/__init__.py - About 35 mins to fix

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

                    def __init__(self, test, dst, tolerance, primary=False, params=None):
                Severity: Minor
                Found in runperf/result.py - About 35 mins to fix

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

                      def __init__(self, host, workers, base_output_path,
                  Severity: Minor
                  Found in runperf/tests.py - About 35 mins to fix

                    Function comma_separated_ranges_to_list has a Cognitive Complexity of 7 (exceeds 6 allowed). Consider refactoring.
                    Open

                    def comma_separated_ranges_to_list(text):
                        """
                        Provides a list from comma separated ranges
                    
                        :param text: string of comma separated range
                    Severity: Minor
                    Found in runperf/utils/__init__.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

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

                        def __init__(self, mean_tolerance, stddev_tolerance, model=None):
                            self.mean_tolerance = mean_tolerance
                            self.stddev_tolerance = stddev_tolerance
                            if model:
                                with open(model, encoding="utf-8") as fd_model:
                    Severity: Minor
                    Found in runperf/result.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

                    Function check_output has a Cognitive Complexity of 7 (exceeds 6 allowed). Consider refactoring.
                    Open

                    def check_output(*args, **kwargs):
                        """
                        Execute command while masking stdin and providing better errors.
                    
                        :param args: args to be passed to subprocess.check_output
                    Severity: Minor
                    Found in runperf/utils/__init__.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