Showing 1,896 of 2,859 total issues

Avoid too many return statements within this function.
Open

      return search(data, tail, version, title)
Severity: Major
Found in deps/npm/lib/view.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return next()
    Severity: Major
    Found in deps/npm/lib/outdated.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        if (cmd && cmd.completion) return cmd.completion(opts, cb)
      Severity: Major
      Found in deps/npm/lib/completion.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          return o
        Severity: Major
        Found in deps/npm/lib/view.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return cb(null, allScripts)
          Severity: Major
          Found in deps/npm/lib/run-script.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              if (!data.hasOwnProperty(field)) return undefined
            Severity: Major
            Found in deps/npm/lib/view.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return new Error("Not an object: "+data)
              Severity: Major
              Found in deps/npm/lib/view.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  if (!cmd) return cmdCompl(opts, cb)
                Severity: Major
                Found in deps/npm/lib/completion.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              else return cb(null, data)
                  Severity: Major
                  Found in deps/npm/lib/cache/add-named.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return cb(new Error(
                            "Invalid package: expected " + pkgData.name + "@" + pkgData.version +
                              " but found " + data.name + "@" + data.version
                          ))
                    Severity: Major
                    Found in deps/npm/lib/cache/add-local.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                return cb(new Error("Invalid Package: expected " +
                                                    pkgData.name + "@" + pkgData.version +
                                                    " but found " + data.name + "@" + data.version))
                      Severity: Major
                      Found in deps/npm/lib/cache/add-local-tarball.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                  if (er) return fetchit()
                        Severity: Major
                        Found in deps/npm/lib/cache/add-named.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              if (d === p) return cb(null, original)
                          Severity: Major
                          Found in deps/npm/lib/config/find-prefix.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return findPrefix_(d, original, cb)
                            Severity: Major
                            Found in deps/npm/lib/config/find-prefix.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  if (!wrapped) return log.verbose("addLocalDirectory", tgz, "already in flight; waiting")
                              Severity: Major
                              Found in deps/npm/lib/cache/add-local.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return EcmaMetaData.BINARY_OPERATOR
                                Severity: Major
                                Found in tools/closure_linter/closure_linter/ecmametadatapass.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                    return None
                                  Severity: Major
                                  Found in tools/closure_linter/closure_linter/tokenutil.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return 0
                                    Severity: Major
                                    Found in tools/closure_linter/gflags.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return EcmaMetaData.UNARY_OPERATOR
                                      Severity: Major
                                      Found in tools/closure_linter/closure_linter/ecmametadatapass.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return '.'.join(parts)
                                        Severity: Major
                                        Found in tools/closure_linter/closure_linter/javascriptstatetracker.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language