StoryScriptorg/StoryScript

View on GitHub
storyscript/processor.py

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

                            if STORYSCRIPT_INTERPRETER_DEBUG_MODE:
                                print(f"[DEBUG] Application exited with code: {code}")
                            return True
Severity: Major
Found in storyscript/processor.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if commands[0] == "BREAKPOINT":
                                    commands = commands[1:]
                            else:
    Severity: Major
    Found in storyscript/processor.py - About 45 mins to fix

      Refactor this function to reduce its Cognitive Complexity from 40 to the 15 allowed.
      Open

          def parse_file(self, fileName, input_simulate_file=None) -> bool:
      Severity: Critical
      Found in storyscript/processor.py by sonar-python

      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

      def syntax_highlighting(statement):
      Severity: Critical
      Found in storyscript/processor.py by sonar-python

      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

      There are no issues that match your filters.

      Category
      Status