oddbit/sonosjs

View on GitHub
src/upnpService.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function upnpService has 78 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function upnpService() {
            var that = {};
            var httpServerSocket = 0;

            that.startEventServer = function () {
Severity: Major
Found in src/upnpService.js - About 3 hrs to fix

Function register has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            that.register = function (device) {
                if (device.haveSubscriptions()) {
                    return;
                }

Severity: Minor
Found in src/upnpService.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status