storyscript/processor.py
Avoid deeply nested control flow statements. Open
Open
if STORYSCRIPT_INTERPRETER_DEBUG_MODE:
print(f"[DEBUG] Application exited with code: {code}")
return True
Avoid deeply nested control flow statements. Open
Open
if commands[0] == "BREAKPOINT":
commands = commands[1:]
else:
Refactor this function to reduce its Cognitive Complexity from 40 to the 15 allowed. Open
Open
def parse_file(self, fileName, input_simulate_file=None) -> bool:
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
See
Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed. Open
Open
def syntax_highlighting(statement):
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.