karma-runner/karma

View on GitHub
lib/middleware/source_files.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createSourceFilesMiddleware has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createSourceFilesMiddleware (filesPromise, serveFile, basePath, urlRoot) {
  return function (request, response, next) {
    const requestedFilePath = composeUrl(request.url, basePath, urlRoot)
    // When a path contains HTML-encoded characters (e.g %2F used by Jenkins for branches with /)
    const requestedFilePathUnescaped = composeUrl(querystring.unescape(request.url), basePath, urlRoot)
Severity: Minor
Found in lib/middleware/source_files.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status