util/process.py
Showing 2 of 2 total issues
Function getpid_listeningonport
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def getpid_listeningonport(port, ssh_client=None): """ Finds if there is a running process listening for network connections \ on a specific port.
- Read upRead up
Function is_process_running
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def is_process_running(pid, ssh_client=None): """Finds if a process is running, using its process ID. :param pid: The process ID of the target process :param ssh_client: SSH client provided by paramiko to run the command
- Read upRead up