Showing 23 of 46 total issues
Function fromXml
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
lastChange.fromXml = function (xmlString, callback) {
// Everything below the LastChange tag is URL encoded and the meta data is encoded twice
xmlString = xml.decode(xmlString);
var xmlParser = xml.parser();
- Create a ticketCreate a ticket
Function fromData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
httpHeader.fromData = function (data) {
var dataParts = (data || "")
.trim()
.replace(/\r\n/g, "\n") // Normalize line endings
.split("\n\n"); // Separate header from body
- Create a ticketCreate a ticket
Function start
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
that.start = function (devices) {
devices = devices || [];
if (!net.socket.isSupported()) {
console.error("No socket support. Can not run Sonos controller.");
return;
- Create a ticketCreate a ticket