oddbit/sonosjs

View on GitHub
src/sonosController.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function sonosController has 118 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function sonosController() {
            var that = {};

            var multicastGroupSocket = 0;

Severity: Major
Found in src/sonosController.js - About 4 hrs to fix

Function start has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            that.start = function (devices) {
                devices = devices || [];
                if (!net.socket.isSupported()) {
                    console.error("No socket support. Can not run Sonos controller.");
                    return;
Severity: Minor
Found in src/sonosController.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status