oddbit/sonosjs

View on GitHub
src/net/http/header.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function httpHeader has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function httpHeader(opts) {
            opts = opts || {};
            var that = {};

            var headers = opts.headers || [];
Severity: Major
Found in src/net/http/header.js - About 2 hrs to fix

Function fromData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        httpHeader.fromData = function (data) {
            var dataParts = (data || "")
                .trim()
                .replace(/\r\n/g, "\n") // Normalize line endings
                .split("\n\n"); // Separate header from body
Severity: Minor
Found in src/net/http/header.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status