avocado-framework/avocado

View on GitHub
avocado/utils/process.py

Summary

Maintainability
F
4 days
Test Coverage
C
76%

Function call with shell=True parameter identified, possible security issue.
Open

    cmd_result = run(
        cmd=cmd,
        timeout=timeout,
        verbose=verbose,
        ignore_status=ignore_status,
Severity: Minor
Found in avocado/utils/process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

    sp = SubProcess(
        cmd=cmd,
        verbose=verbose,
        shell=shell,
        env=env,
Severity: Minor
Found in avocado/utils/process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

    cmd_result = run(
        cmd=cmd,
        timeout=timeout,
        verbose=verbose,
        ignore_status=ignore_status,
Severity: Minor
Found in avocado/utils/process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

    return getstatusoutput(
        cmd=cmd,
        timeout=timeout,
        verbose=verbose,
        ignore_status=ignore_status,
Severity: Minor
Found in avocado/utils/process.py by bandit

subprocess call with shell=True identified, security issue.
Open

            self._popen = subprocess.Popen(
                cmd,
                stdout=subprocess.PIPE,
                stderr=subprocess.PIPE,
                shell=self.shell,
Severity: Major
Found in avocado/utils/process.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

    cmd_result = run(
        cmd=cmd,
        timeout=timeout,
        verbose=verbose,
        ignore_status=ignore_status,
Severity: Minor
Found in avocado/utils/process.py by bandit

Consider possible security implications associated with subprocess module.
Open

import subprocess
Severity: Info
Found in avocado/utils/process.py by bandit

File process.py has 1117 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
Severity: Major
Found in avocado/utils/process.py - About 2 days to fix

    Function system_output has 11 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def system_output(
    Severity: Major
    Found in avocado/utils/process.py - About 1 hr to fix

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

      def run(
      Severity: Major
      Found in avocado/utils/process.py - About 1 hr to fix

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

        def system(
        Severity: Major
        Found in avocado/utils/process.py - About 1 hr to fix

          Function getoutput has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def getoutput(
          Severity: Major
          Found in avocado/utils/process.py - About 1 hr to fix

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

                def __init__(
            Severity: Major
            Found in avocado/utils/process.py - About 1 hr to fix

              Function getstatusoutput has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def getstatusoutput(
              Severity: Major
              Found in avocado/utils/process.py - About 1 hr to fix

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

                    def __init__(
                Severity: Major
                Found in avocado/utils/process.py - About 1 hr to fix

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

                      def __init__(
                  Severity: Major
                  Found in avocado/utils/process.py - About 1 hr to fix

                    There are no issues that match your filters.

                    Category
                    Status