tobspr/RenderPipeline

View on GitHub

Showing 873 of 873 total issues

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

    def __init__(self, marker='#', left='|', right='|', fill=' ',
Severity: Minor
Found in rplibs/progressbar/widgets.py - About 35 mins to fix

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

        def __init__(self, name, position, character, encoding, reason):
    Severity: Minor
    Found in rplibs/yaml/yaml_py2/reader.py - About 35 mins to fix

      Function sequences has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def sequences(self):
              result = []
              if self.dimension == 2:
                  for dim in self.POISSON_2D_SIZES:
                      result.append("poisson_2D_" + str(dim))
      Severity: Minor
      Found in rpcore/pluginbase/setting_types.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function scan_tag_handle has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def scan_tag_handle(self, name, start_mark):
              # See the specification for details.
              # For some strange reasons, the specification does not allow '_' in
              # tag handles. I have allowed it anyway.
              ch = self.peek()
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/scanner.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function _render_stages has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def _render_stages(self):
              """ Renders the stages to the window """
      
              self._remove_components()
              entries_per_row = 6
      Severity: Minor
      Found in rpcore/gui/buffer_viewer.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function scan_block_scalar_indentation has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def scan_block_scalar_indentation(self):
              # See the specification for details.
              chunks = []
              max_indent = 0
              end_mark = self.get_mark()
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/scanner.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function qt_connect has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def qt_connect(obj, signal_name, handler):
              if "(" in signal_name:
                  slot_name = signal_name[:signal_name.index("(")]
                  handler_type = signal_name[signal_name.index("(") + 1:].rstrip(")")
                  handler_type = str(handler_type.replace("*", "")).strip()
      Severity: Minor
      Found in rplibs/pyqt_imports.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function write_autoconfig has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def write_autoconfig(self):
              """ Writes the shader auto config, based on the defines specified by the
              different stages """
              self.debug("Writing shader config")
      
      
      Severity: Minor
      Found in rpcore/stage_manager.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function on_setting_changed has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def on_setting_changed(self, plugin_id, setting_id, value):
              """ Callback when a setting got changed. This will update the setting,
              and also call the callback for that setting, in case the plugin defined
              one. """
              if plugin_id not in self.settings or setting_id not in self.settings[plugin_id]:
      Severity: Minor
      Found in rpcore/pluginbase/manager.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function load_daytime_overrides has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def load_daytime_overrides(self, override_path):
              """ Loads an override file for the daytime settings, which contains
              values to override the settings with """
              overrides = load_yaml_file(override_path)
              if not overrides:
      Severity: Minor
      Found in rpcore/pluginbase/manager.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function scan_flow_scalar_spaces has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def scan_flow_scalar_spaces(self, double, start_mark):
              # See the specification for details.
              chunks = []
              length = 0
              while self.peek(length) in ' \t':
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/scanner.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function scan_uri_escapes has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def scan_uri_escapes(self, name, start_mark):
              # See the specification for details.
              codes = []
              mark = self.get_mark()
              while self.peek() == '%':
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/scanner.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function scan_flow_scalar_spaces has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def scan_flow_scalar_spaces(self, double, start_mark):
              # See the specification for details.
              chunks = []
              length = 0
              while self.peek(length) in u' \t':
      Severity: Minor
      Found in rplibs/yaml/yaml_py2/scanner.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function determine_encoding has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def determine_encoding(self):
              while not self.eof and (self.raw_buffer is None or len(self.raw_buffer) < 2):
                  self.update_raw()
              if isinstance(self.raw_buffer, bytes):
                  if self.raw_buffer.startswith(codecs.BOM_UTF16_LE):
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/reader.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function construct_python_object_apply has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def construct_python_object_apply(self, suffix, node, newobj=False):
              # Format:
              #   !!python/object/apply       # (or !!python/object/new)
              #   args: [ ... arguments ... ]
              #   kwds: { ... keywords ... }
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/constructor.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function scan_block_scalar_indentation has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def scan_block_scalar_indentation(self):
              # See the specification for details.
              chunks = []
              max_indent = 0
              end_mark = self.get_mark()
      Severity: Minor
      Found in rplibs/yaml/yaml_py2/scanner.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function process_scalar has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def process_scalar(self):
              if self.analysis is None:
                  self.analysis = self.analyze_scalar(self.event.value)
              if self.style is None:
                  self.style = self.choose_scalar_style()
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/emitter.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function scan_uri_escapes has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def scan_uri_escapes(self, name, start_mark):
              # See the specification for details.
              bytes = []
              mark = self.get_mark()
              while self.peek() == u'%':
      Severity: Minor
      Found in rplibs/yaml/yaml_py2/scanner.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function __str__ has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def __str__(self):
              lines = []
              if self.context is not None:
                  lines.append(self.context)
              if self.context_mark is not None  \
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/error.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function prepare_tag_handle has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def prepare_tag_handle(self, handle):
              if not handle:
                  raise EmitterError("tag handle must not be empty")
              if handle[0] != '!' or handle[-1] != '!':
                  raise EmitterError("tag handle must start and end with '!': %r" % handle)
      Severity: Minor
      Found in rplibs/yaml/yaml_py3/emitter.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Severity
      Category
      Status
      Source
      Language