netinvent/command_runner

View on GitHub

Showing 3 of 31 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

class InterruptGetOutput(BaseException):
"""
Make sure we get the current output when process is stopped mid-execution
"""
 
 
Severity: Major
Found in command_runner/__init__.py and 2 other locations - About 3 hrs to fix
command_runner/__init__.py on lines 221..236
command_runner/__init__.py on lines 239..254

Similar blocks of code found in 3 locations. Consider refactoring.
Open

class KbdInterruptGetOutput(InterruptGetOutput):
"""
Make sure we get the current output when KeyboardInterrupt is made
"""
 
 
Severity: Major
Found in command_runner/__init__.py and 2 other locations - About 3 hrs to fix
command_runner/__init__.py on lines 203..218
command_runner/__init__.py on lines 239..254

Similar blocks of code found in 3 locations. Consider refactoring.
Open

class StopOnInterrupt(InterruptGetOutput):
"""
Make sure we get the current output when optional stop_on function execution returns True
"""
 
 
Severity: Major
Found in command_runner/__init__.py and 2 other locations - About 3 hrs to fix
command_runner/__init__.py on lines 203..218
command_runner/__init__.py on lines 221..236
Severity
Category
Status
Source
Language