tobspr/RenderPipeline

View on GitHub

Showing 873 of 873 total issues

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

        try:
            __import__(module_name)
        except ImportError as exc:
            raise ConstructorError("while constructing a Python object", mark,
                    "cannot find module %r (%s)" % (module_name, exc), mark)
Severity: Minor
Found in rplibs/yaml/yaml_py3/constructor.py and 1 other location - About 45 mins to fix
rplibs/yaml/yaml_py3/constructor.py on lines 504..508

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 35.

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

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

        self.lbl_plugin_desc.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
Severity: Major
Found in toolkit/plugin_configurator/ui/main_window_generated.py and 2 other locations - About 45 mins to fix
toolkit/plugin_configurator/ui/main_window_generated.py on lines 357..357
toolkit/plugin_configurator/ui/main_window_generated.py on lines 669..669

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 35.

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

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

            daysettings = collections.OrderedDict(
                [(k, make_daysetting_from_data(v)) for k, v in config["daytime_settings"]])
Severity: Minor
Found in rpcore/pluginbase/manager.py and 1 other location - About 45 mins to fix
rpcore/pluginbase/manager.py on lines 123..124

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 35.

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

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

            try:
                with open(fullpath[:-3], 'wb') as dest, gzip.open(fullpath, 'rb') as src:
                    shutil.copyfileobj(src, dest)
            except IOError as msg:
                error("Failed to extract file '" + fname + "': " + str(msg))
Severity: Minor
Found in setup.py and 1 other location - About 45 mins to fix
setup.py on lines 178..182

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 35.

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

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

                    offs_x = start_point.x + x_pos / (num_probes.x + 0.5) * model_size.x
Severity: Major
Found in toolkit/bake_gi/bake.py and 2 other locations - About 45 mins to fix
toolkit/bake_gi/bake.py on lines 208..208
toolkit/bake_gi/bake.py on lines 209..209

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 35.

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

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

        self.lbl_plugin_version.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
Severity: Major
Found in toolkit/plugin_configurator/ui/main_window_generated.py and 2 other locations - About 45 mins to fix
toolkit/plugin_configurator/ui/main_window_generated.py on lines 363..363
toolkit/plugin_configurator/ui/main_window_generated.py on lines 669..669

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 35.

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

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

                    offs_z = start_point.z + z_pos / (num_probes.z + 0.5) * model_size.z
Severity: Major
Found in toolkit/bake_gi/bake.py and 2 other locations - About 45 mins to fix
toolkit/bake_gi/bake.py on lines 207..207
toolkit/bake_gi/bake.py on lines 208..208

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 35.

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

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

    def fetch_tag(self):

        # TAG could start a simple key.
        self.save_possible_simple_key()

Severity: Minor
Found in rplibs/yaml/yaml_py2/scanner.py and 1 other location - About 45 mins to fix
rplibs/yaml/yaml_py2/scanner.py on lines 669..680

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 35.

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

Consider simplifying this complex logical expression.
Open

                if ch in '\0 \t\r\n\x85\u2028\u2029'    \
                        or (not self.flow_level and ch == ':' and
                                self.peek(length+1) in '\0 \t\r\n\x85\u2028\u2029') \
                        or (self.flow_level and ch in ',:?[]{}'):
                    break
Severity: Major
Found in rplibs/yaml/yaml_py3/scanner.py - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if isinstance(self.event, DocumentStartEvent):
                if (self.event.version or self.event.tags) and self.open_ended:
                    self.write_indicator('...', True)
                    self.write_indent()
                if self.event.version:
    Severity: Major
    Found in rplibs/yaml/yaml_py3/emitter.py - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                  if ((not self.canonical or tag is None) and
                      ((self.style == '' and self.event.implicit[0])
                              or (self.style != '' and self.event.implicit[1]))):
                      self.prepared_tag = None
                      return
      Severity: Major
      Found in rplibs/yaml/yaml_py3/emitter.py - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                        if ch in u'\0 \t\r\n\x85\u2028\u2029'   \
                                or (not self.flow_level and ch == u':' and
                                        self.peek(length+1) in u'\0 \t\r\n\x85\u2028\u2029') \
                                or (self.flow_level and ch in u',:?[]{}'):
                            break
        Severity: Major
        Found in rplibs/yaml/yaml_py2/scanner.py - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                      if '0' <= ch <= '9' or 'A' <= ch <= 'Z' or 'a' <= ch <= 'z' \
                              or ch in '-;/?:@&=+$,_.~*\'()[]'   \
                              or (ch == '!' and handle != '!'):
                          end += 1
                      else:
          Severity: Major
          Found in rplibs/yaml/yaml_py3/emitter.py - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                        if ch is None or ch in '"\\\x85\u2028\u2029\uFEFF' \
                                or not ('\x20' <= ch <= '\x7E'
                                    or (self.allow_unicode
                                        and ('\xA0' <= ch <= '\uD7FF'
                                            or '\uE000' <= ch <= '\uFFFD'))):
            Severity: Major
            Found in rplibs/yaml/yaml_py3/emitter.py - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                      if self.context_mark is not None  \
                          and (self.problem is None or self.problem_mark is None
                                  or self.context_mark.name != self.problem_mark.name
                                  or self.context_mark.line != self.problem_mark.line
                                  or self.context_mark.column != self.problem_mark.column):
              Severity: Major
              Found in rplibs/yaml/yaml_py3/error.py - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                        if isinstance(self.event, DocumentStartEvent):
                            if (self.event.version or self.event.tags) and self.open_ended:
                                self.write_indicator(u'...', True)
                                self.write_indent()
                            if self.event.version:
                Severity: Major
                Found in rplibs/yaml/yaml_py2/emitter.py - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if ch is None or ch in u'"\\\x85\u2028\u2029\uFEFF' \
                                      or not (u'\x20' <= ch <= u'\x7E'
                                          or (self.allow_unicode
                                              and (u'\xA0' <= ch <= u'\uD7FF'
                                                  or u'\uE000' <= ch <= u'\uFFFD'))):
                  Severity: Major
                  Found in rplibs/yaml/yaml_py2/emitter.py - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if u'0' <= ch <= u'9' or u'A' <= ch <= u'Z' or u'a' <= ch <= u'z'   \
                                        or ch in u'-;/?:@&=+$,_.~*\'()[]'   \
                                        or (ch == u'!' and handle != u'!'):
                                    end += 1
                                else:
                    Severity: Major
                    Found in rplibs/yaml/yaml_py2/emitter.py - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if self.context_mark is not None  \
                                  and (self.problem is None or self.problem_mark is None
                                          or self.context_mark.name != self.problem_mark.name
                                          or self.context_mark.line != self.problem_mark.line
                                          or self.context_mark.column != self.problem_mark.column):
                      Severity: Major
                      Found in rplibs/yaml/yaml_py2/error.py - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if ((not self.canonical or tag is None) and
                                        ((self.style == '' and self.event.implicit[0])
                                                or (self.style != '' and self.event.implicit[1]))):
                                        self.prepared_tag = None
                                        return
                        Severity: Major
                        Found in rplibs/yaml/yaml_py2/emitter.py - About 40 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language