Showing 23 of 46 total issues
Function httpServer
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function httpServer() {
var that = {};
var serverSocketRegistry = {};
var httpRequests = {};
- Create a ticketCreate a ticket
Function mediaController
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mediaController() {
var that = {};
/**
* Make a http request to a sonos device and ask for the current media state (i.e. what song
- Create a ticketCreate a ticket
Function exports
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
"use strict";
var buildOptions = {
debug: false
- Create a ticketCreate a ticket
Function sonosController
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sonosController() {
var that = {};
var multicastGroupSocket = 0;
- Create a ticketCreate a ticket
File chrome.js
has 363 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define(function (require) {
"use strict";
var convert = require("net/convert");
var httpResponse = require("net/http/response");
- Create a ticketCreate a ticket
Function tcp
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tcp() {
var that = {};
var socketRegistry = {};
/**
- Create a ticketCreate a ticket
Function udp
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function udp() {
var that = {};
var socketRegistry = {};
/**
- Create a ticketCreate a ticket
Function upnpService
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upnpService() {
var that = {};
var httpServerSocket = 0;
that.startEventServer = function () {
- Create a ticketCreate a ticket
Function xmlParser
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function xmlParser(opts) {
opts = opts || {};
var that = {};
var parser = sax.parser(opts.strict || true, opts);
var excludeNamespace = opts.excludeNamespace || true;
- Create a ticketCreate a ticket
Function httpHeader
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function httpHeader(opts) {
opts = opts || {};
var that = {};
var headers = opts.headers || [];
- Create a ticketCreate a ticket
Function deviceService
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function deviceService() {
var that = {};
var devices = [];
/**
- Create a ticketCreate a ticket
Function lastChange
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lastChange(opts) {
opts = opts || {};
var that = {};
- Create a ticketCreate a ticket
Function onReceive
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onReceive(info) {
var clientSocket = info.socketId;
if (!httpRequests.hasOwnProperty(clientSocket)) {
return;
- Create a ticketCreate a ticket
Function init
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function init() {
switch (playState) {
case "PLAYING":
that.playState = playStateType.PLAYING;
break;
- Create a ticketCreate a ticket
Function open
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
that.open = function (options, callback) {
options = options || {};
var ip = options.remoteIp;
var port = Number(options.remotePort);
- Create a ticketCreate a ticket
Function httpRequest
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function httpRequest(opts) {
opts = opts || {};
var that = {};
var expectedLength = 0;
- Create a ticketCreate a ticket
Function device
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function device(opts) {
opts = opts || {};
/**
* @typedef {object} device
- Create a ticketCreate a ticket
Function eventManager
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function eventManager() {
var that = {};
var eventCallbacks = {};
that.action = {
- Create a ticketCreate a ticket
Function register
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
that.register = function (device) {
if (device.haveSubscriptions()) {
return;
}
- Create a ticketCreate a ticket
Function makeBuildConfig
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeBuildConfig() {
return {
options: {
baseUrl: "./src",
name: "almond",
- Create a ticketCreate a ticket