tobspr/RenderPipeline

View on GitHub

Showing 873 of 873 total issues

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

    def __init__(self, stream,
Severity: Major
Found in rplibs/yaml/yaml_py3/dumper.py - About 1 hr to fix

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

        def __init__(self, stream,
    Severity: Major
    Found in rplibs/yaml/yaml_py3/cyaml.py - About 1 hr to fix

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

          def __init__(self, stream,
      Severity: Major
      Found in rplibs/yaml/yaml_py2/cyaml.py - About 1 hr to fix

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

            def __init__(self, stream,
        Severity: Major
        Found in rplibs/yaml/yaml_py2/dumper.py - About 1 hr to fix

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

              def __init__(self, stream,
          Severity: Major
          Found in rplibs/yaml/yaml_py2/dumper.py - About 1 hr to fix

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

                def __init__(self, stream,
            Severity: Major
            Found in rplibs/yaml/yaml_py2/dumper.py - About 1 hr to fix

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

                  def __init__(self, stream,
              Severity: Major
              Found in rplibs/yaml/yaml_py2/cyaml.py - About 1 hr to fix

                Function serialize_all has 13 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def serialize_all(nodes, stream=None, Dumper=Dumper,
                Severity: Major
                Found in rplibs/yaml/yaml_py3/__init__.py - About 1 hr to fix

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

                      def __init__(self, stream,
                  Severity: Major
                  Found in rplibs/yaml/yaml_py2/cyaml.py - About 1 hr to fix

                    Function serialize_all has 13 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def serialize_all(nodes, stream=None, Dumper=Dumper,
                    Severity: Major
                    Found in rplibs/yaml/yaml_py2/__init__.py - About 1 hr to fix

                      Function update has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          def update(self):
                              """ Updates the commonly used resources, mostly the shader inputs """
                              update = self._input_ubo.update_input
                      
                              # Get the current transform matrix of the camera
                      Severity: Minor
                      Found in rpcore/common_resources.py - About 1 hr to fix

                        Function __init__ has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def __init__(self, image=None, parent=None, x=0, y=0, w=None, h=None,
                                         transparent=True, near_filter=True, any_filter=True):
                                """ Creates a new image, taking (x,y) as topleft coordinates.
                        
                                When near_filter is set to true, a near filter will be set to the
                        Severity: Minor
                        Found in rpcore/gui/sprite.py - About 1 hr 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_prefix has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def prepare_tag_prefix(self, prefix):
                                if not prefix:
                                    raise EmitterError("tag prefix must not be empty")
                                chunks = []
                                start = end = 0
                        Severity: Minor
                        Found in rplibs/yaml/yaml_py3/emitter.py - About 1 hr 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 check_simple_key has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def check_simple_key(self):
                                length = 0
                                if isinstance(self.event, NodeEvent) and self.event.anchor is not None:
                                    if self.prepared_anchor is None:
                                        self.prepared_anchor = self.prepare_anchor(self.event.anchor)
                        Severity: Minor
                        Found in rplibs/yaml/yaml_py3/emitter.py - About 1 hr 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 anchor_node has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def anchor_node(self, node):
                                if node in self.anchors:
                                    if self.anchors[node] is None:
                                        self.anchors[node] = self.generate_anchor(node)
                                else:
                        Severity: Minor
                        Found in rplibs/yaml/yaml_py3/serializer.py - About 1 hr 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_prefix has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def prepare_tag_prefix(self, prefix):
                                if not prefix:
                                    raise EmitterError("tag prefix must not be empty")
                                chunks = []
                                start = end = 0
                        Severity: Minor
                        Found in rplibs/yaml/yaml_py2/emitter.py - About 1 hr 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 represent_mapping has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def represent_mapping(self, tag, mapping, flow_style=None):
                                value = []
                                node = MappingNode(tag, value, flow_style=flow_style)
                                if self.alias_key is not None:
                                    self.represented_objects[self.alias_key] = node
                        Severity: Minor
                        Found in rplibs/yaml/yaml_py2/representer.py - About 1 hr 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 check_simple_key has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def check_simple_key(self):
                                length = 0
                                if isinstance(self.event, NodeEvent) and self.event.anchor is not None:
                                    if self.prepared_anchor is None:
                                        self.prepared_anchor = self.prepare_anchor(self.event.anchor)
                        Severity: Minor
                        Found in rplibs/yaml/yaml_py2/emitter.py - About 1 hr 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 anchor_node has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def anchor_node(self, node):
                                if node in self.anchors:
                                    if self.anchors[node] is None:
                                        self.anchors[node] = self.generate_anchor(node)
                                else:
                        Severity: Minor
                        Found in rplibs/yaml/yaml_py2/serializer.py - About 1 hr 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

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                            def construct_scalar(self, node):
                                if not isinstance(node, ScalarNode):
                                    raise ConstructorError(None, None,
                                            "expected a scalar node, but found %s" % node.id,
                                            node.start_mark)
                        Severity: Major
                        Found in rplibs/yaml/yaml_py2/constructor.py and 1 other location - About 1 hr to fix
                        rplibs/yaml/yaml_py3/constructor.py on lines 103..108

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 45.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Severity
                        Category
                        Status
                        Source
                        Language