Showing 96 of 196 total issues
File nutella_lib.js
has 2793 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.NUTELLA = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/******************
* nutella_lib.js *
******************/
- Create a ticketCreate a ticket
Function 15
has 1340 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./paho/mqttws31":15}],15:[function(require,module,exports){
/*******************************************************************************
* Copyright (c) 2013 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
- Create a ticketCreate a ticket
Function MQTT
has 1334 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Paho.MQTT = (function (global) {
// Private variables below, these are only visible inside the function closure
// which is used to define the module.
- Create a ticketCreate a ticket
File bootstrap.js
has 1548 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v3.3.4 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
- Create a ticketCreate a ticket
Function 2
has 343 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./nutella_i_browser":9,"./version":17}],2:[function(require,module,exports){
/*jshint bitwise:false*/
/*global unescape*/
(function (factory) {
- Create a ticketCreate a ticket
Function 10
has 230 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./app_core_browser":3,"./fr_core_browser":6,"./run_location":10,"./run_log":11,"./run_net":12,"./simple-mqtt-client/client-browser":14}],10:[function(require,module,exports){
var LocationSubModule = function(main_nutella) {
this.nutella = main_nutella;
this._resources = {};
- Create a ticketCreate a ticket
Function Client
has 221 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Client = function (host, port, path, clientId) {
var uri;
if (typeof host !== "string")
- Create a ticketCreate a ticket
Function 8
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./app_net":5}],8:[function(require,module,exports){
/**
* Framework-level Networking APIs for nutella
*/
- Create a ticketCreate a ticket
Function 16
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],16:[function(require,module,exports){
/**
* Network APIs abstraction
*/
- Create a ticketCreate a ticket
Function 14
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"spark-md5":2}],14:[function(require,module,exports){
/**********************
* Simple MQTT client *
**********************/
- Create a ticketCreate a ticket
Function encode
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
WireMessage.prototype.encode = function() {
// Compute the first byte of the fixed header
var first = ((this.type & 0x0f) << 4);
/*
- Create a ticketCreate a ticket
Function _handleMessage
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ClientImpl.prototype._handleMessage = function(wireMessage) {
this._trace("Client._handleMessage", wireMessage);
try {
- Create a ticketCreate a ticket
Function generateVirtualResource
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateVirtualResource(resource) {
var virtualResource = {};
Object.defineProperty(virtualResource, 'rid', {
get: function() {
return resource.rid;
- Create a ticketCreate a ticket
Function 5
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./app_net":5}],5:[function(require,module,exports){
/**
* App-level Networking APIs for nutella
*/
- Create a ticketCreate a ticket
Function connect
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.connect = function (connectOptions) {
connectOptions = connectOptions || {} ;
validate(connectOptions, {timeout:"number",
userName:"string",
password:"string",
- Create a ticketCreate a ticket
Function md5cycle
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
md5cycle = function (x, k) {
var a = x[0],
b = x[1],
c = x[2],
d = x[3];
- Create a ticketCreate a ticket
Function 13
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./run_net_bin":13,"./util/net":16}],13:[function(require,module,exports){
/**
* Run-level binary network APIs for nutella
*/
- Create a ticketCreate a ticket
Function 9
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./util/net":16}],9:[function(require,module,exports){
/**
* Run-level and App-level Nutella instances for the browser
*/
- Create a ticketCreate a ticket
Function decodeMessage
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function decodeMessage(input,pos) {
var startingPos = pos;
var first = input[pos];
var type = first >> 4;
var messageInfo = first &= 0x0f;
- Create a ticketCreate a ticket
Function Message
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Message = function (newPayload) {
var payload;
if ( typeof newPayload === "string"
|| newPayload instanceof ArrayBuffer
|| newPayload instanceof Int8Array
- Create a ticketCreate a ticket