Showing 2,859 of 2,859 total issues

Avoid too many return statements within this function.
Open

    return 'freebsd'
Severity: Major
Found in deps/v8/tools/testrunner/local/utils.py - About 30 mins to fix

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

    Reader.prototype.pipe = function(dest) {
      this.dest = dest;
      this.flow();
      return dest;
    };
    Severity: Minor
    Found in benchmark/net/net-pipe.js and 2 other locations - About 30 mins to fix
    benchmark/net/net-c2s.js on lines 73..77
    benchmark/net/net-s2c.js on lines 73..77

    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

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

    Reader.prototype.pipe = function(dest) {
      this.dest = dest;
      this.flow();
      return dest;
    };
    Severity: Minor
    Found in benchmark/net/net-c2s.js and 2 other locations - About 30 mins to fix
    benchmark/net/net-pipe.js on lines 73..77
    benchmark/net/net-s2c.js on lines 73..77

    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

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

        readJson(path.join(npm.dir, p, "package.json"), function (er, d) {
          if (!d || !filter(d)) return cb(null, [])
          return cb(null, d.name)
        })
    Severity: Minor
    Found in deps/npm/lib/utils/completion/installed-shallow.js and 1 other location - About 30 mins to fix
    deps/npm/lib/utils/completion/installed-shallow.js on lines 60..63

    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

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

    function sc_display(o, p) {
        if (p === undefined) // we assume not given
        p = SC_DEFAULT_OUT;
        p.appendJSString(sc_toDisplayString(o));
    }
    Severity: Minor
    Found in deps/v8/benchmarks/earley-boyer.js and 2 other locations - About 30 mins to fix
    deps/v8/benchmarks/earley-boyer.js on lines 2762..2766
    deps/v8/benchmarks/earley-boyer.js on lines 2868..2872

    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

    Avoid too many return statements within this function.
    Open

          return self.map[matched_text]
    Severity: Major
    Found in deps/v8/tools/jsmin.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return 'openbsd'
      Severity: Major
      Found in deps/v8/tools/testrunner/local/utils.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return 'netbsd'
        Severity: Major
        Found in deps/v8/tools/testrunner/local/utils.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return base_str
          Severity: Major
          Found in deps/v8/tools/gdb-v8-support.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return 'ia32'
            Severity: Major
            Found in deps/v8/tools/testrunner/local/utils.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return 'solaris'
              Severity: Major
              Found in deps/v8/tools/testrunner/local/utils.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  return machine  # Return as-is and hope for the best.
                Severity: Major
                Found in deps/uv/gyp_uv.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return self._SlicedString(name)
                  Severity: Major
                  Found in deps/v8/tools/generate-runtime-tests.py - About 30 mins to fix

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

                    function Gunzip(opts) {
                      if (!(this instanceof Gunzip)) return new Gunzip(opts);
                      Zlib.call(this, opts, binding.GUNZIP);
                    }
                    Severity: Minor
                    Found in lib/zlib.js and 2 other locations - About 30 mins to fix
                    lib/zlib.js on lines 252..255
                    lib/zlib.js on lines 278..281

                    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

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

                    function sc_write(o, p) {
                        if (p === undefined) // we assume not given
                        p = SC_DEFAULT_OUT;
                        p.appendJSString(sc_toWriteString(o));
                    }
                    Severity: Minor
                    Found in deps/v8/benchmarks/earley-boyer.js and 2 other locations - About 30 mins to fix
                    deps/v8/benchmarks/earley-boyer.js on lines 2824..2828
                    deps/v8/benchmarks/earley-boyer.js on lines 2868..2872

                    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

                    Avoid too many return statements within this function.
                    Open

                        return None
                    Severity: Major
                    Found in deps/v8/tools/testrunner/local/utils.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return self._InternalizedString(name)
                      Severity: Major
                      Found in deps/v8/tools/generate-runtime-tests.py - About 30 mins to fix

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

                            readJson(path.join(globalDir, p, "package.json"), function (er, d) {
                              if (!d || !filter(d)) return cb(null, [])
                              return cb(null, d.name)
                            })
                        Severity: Minor
                        Found in deps/npm/lib/utils/completion/installed-shallow.js and 1 other location - About 30 mins to fix
                        deps/npm/lib/utils/completion/installed-shallow.js on lines 49..52

                        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

                        Avoid too many return statements within this function.
                        Open

                            return None
                        Severity: Major
                        Found in deps/v8/tools/testrunner/local/utils.py - About 30 mins to fix

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

                          function sc_writeCircle(o, p) {
                              if (p === undefined) // we assume not given
                              p = SC_DEFAULT_OUT;
                              p.appendJSString(sc_toWriteCircleString(o));
                          }
                          Severity: Minor
                          Found in deps/v8/benchmarks/earley-boyer.js and 2 other locations - About 30 mins to fix
                          deps/v8/benchmarks/earley-boyer.js on lines 2762..2766
                          deps/v8/benchmarks/earley-boyer.js on lines 2824..2828

                          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