karma-runner/karma

View on GitHub

Showing 193 of 258 total issues

Avoid too many return statements within this function.
Open

          return 'Skipping stringify, no support for dom-serialize'
Severity: Major
Found in static/karma.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return filesPromise.then((files) => {
            common.setNoCacheHeaders(response)
            response.writeHead(200)
            response.end(JSON.stringify({
              files: files.included.map((file) => filePathToUrlPath(file.path + '?' + file.sha, basePath, urlRoot, proxyPath))
    Severity: Major
    Found in lib/middleware/karma.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return obj.toString() + '\n' + obj.stack
      Severity: Major
      Found in static/karma.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return obj.outerHTML
        Severity: Major
        Found in static/context.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return serveStaticFile(requestUrl, requestedRangeHeader, response)
          Severity: Major
          Found in lib/middleware/karma.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return filesPromise.then((files) => {
                    let fileServer
                    let requestedFileUrl
                    log.debug('custom files', customContextFile, customDebugFile, customClientContextFile)
                    if (isRequestingContextFile && customContextFile) {
            Severity: Major
            Found in lib/middleware/karma.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return 200 // All other states, ignore
              Severity: Major
              Found in lib/middleware/common.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return obj.toString()
                Severity: Major
                Found in static/context.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return '<!--' + obj.nodeValue + '-->'
                  Severity: Major
                  Found in common/stringify.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return '<!--' + obj.nodeValue + '-->'
                    Severity: Major
                    Found in static/karma.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                return 'Skipping stringify, no support for dom-serialize'
                      Severity: Major
                      Found in static/context.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                  return serialize(obj)
                        Severity: Major
                        Found in static/karma.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                    return 'Skipping stringify, no support for dom-serialize'
                          Severity: Major
                          Found in common/stringify.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                      return serialize(obj)
                            Severity: Major
                            Found in common/stringify.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return results.failed ? 1 : 0
                              Severity: Major
                              Found in lib/browser_collection.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return strs.join('')
                                Severity: Major
                                Found in static/karma.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return '<!--' + obj.nodeValue + '-->'
                                  Severity: Major
                                  Found in static/context.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return obj.toString() + '\n' + obj.stack
                                    Severity: Major
                                    Found in static/context.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return obj.nodeValue
                                      Severity: Major
                                      Found in common/stringify.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return 0 // Tests executed without infrastructure error, exit with 0 independent of test status.
                                        Severity: Major
                                        Found in lib/browser_collection.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language