Showing 256 of 374 total issues
File bundle.js
has 8552 lines of code (exceeds 250 allowed). Consider refactoring. Open
(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){
module.exports = Msg;
require('./utils');
var extend = require('extend'),
concat = Array.prototype.concat,
Function 8
has 3871 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],8:[function(require,module,exports){
/*!
* Knockout JavaScript library v3.2.0
* (c) Steven Sanderson - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
Function 53
has a Cognitive Complexity of 773 (exceeds 5 allowed). Consider refactoring. Open
},{"C:\\Users\\Maik\\Repos\\cordova-build\\node_modules\\socket.io\\node_modules\\socket.io-client\\node_modules\\has-binary\\node_modules\\isarray\\index.js":43}],53:[function(require,module,exports){
/*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
;(function (window) {
// Convenience aliases.
var getClass = {}.toString, isProperty, forEach, undef;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 7
has a Cognitive Complexity of 358 (exceeds 5 allowed). Consider refactoring. Open
},{}],7:[function(require,module,exports){
(function (global){
////For performance tests please see: http://jsperf.com/js-inheritance-performance/34 + http://jsperf.com/js-inheritance-performance/35 + http://jsperf.com/js-inheritance-performance/36
(function selfCall() {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 29
has a Cognitive Complexity of 228 (exceeds 5 allowed). Consider refactoring. Open
},{}],29:[function(require,module,exports){
(function (global){
/**
* Module dependencies.
*/
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File bootstrap.js
has 1256 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* Bootstrap v3.1.1 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
Function 20
has a Cognitive Complexity of 149 (exceeds 5 allowed). Consider refactoring. Open
},{"./socket":20,"engine.io-parser":29}],20:[function(require,module,exports){
(function (global){
/**
* Module dependencies.
*/
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 53
has 551 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"C:\\Users\\Maik\\Repos\\cordova-build\\node_modules\\socket.io\\node_modules\\socket.io-client\\node_modules\\has-binary\\node_modules\\isarray\\index.js":43}],53:[function(require,module,exports){
/*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
;(function (window) {
// Convenience aliases.
var getClass = {}.toString, isProperty, forEach, undef;
Function 35
has a Cognitive Complexity of 120 (exceeds 5 allowed). Consider refactoring. Open
},{}],35:[function(require,module,exports){
(function (global){
/*! http://mths.be/utf8js v2.0.0 by @mathias */
;(function(root) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 24
has a Cognitive Complexity of 108 (exceeds 5 allowed). Consider refactoring. Open
},{"./polling":25,"component-inherit":28}],24:[function(require,module,exports){
(function (global){
/**
* Module requirements.
*/
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function utils
has 409 lines of code (exceeds 25 allowed). Consider refactoring. Open
ko.utils = (function () {
function objectForEach(obj, action) {
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) {
action(prop, obj[prop]);
Function 20
has 406 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"./socket":20,"engine.io-parser":29}],20:[function(require,module,exports){
(function (global){
/**
* Module dependencies.
*/
File qr.js
has 808 lines of code (exceeds 250 allowed). Consider refactoring. Open
// [qr.js](http://neocotic.com/qr.js)
// (c) 2013 Alasdair Mercer
// Freely distributable under the MIT license.
// Based on [jsqrencode](http://code.google.com/p/jsqrencode/)
// (c) 2010 tz@execpc.com
Function 2
has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring. Open
},{"./utils":2,"extend":6}],2:[function(require,module,exports){
var log = console.log;
require('date-format-lite');
require('fast-class');
require('array-sugar');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 29
has 350 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],29:[function(require,module,exports){
(function (global){
/**
* Module dependencies.
*/
Function 55
has 346 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],55:[function(require,module,exports){
var ioc = require('socket.io/node_modules/socket.io-client');
require('../../lib/common/utils.js');
var Msg = require('../../lib/common/Msg.js');
var ko = require('knockout');
Function 49
has a Cognitive Complexity of 85 (exceeds 5 allowed). Consider refactoring. Open
},{"./is-buffer":50,"isarray":52}],49:[function(require,module,exports){
/**
* Module dependencies.
*/
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 48
has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring. Open
},{}],48:[function(require,module,exports){
(function (global){
/*global Blob,File*/
/**
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 7
has 297 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],7:[function(require,module,exports){
(function (global){
////For performance tests please see: http://jsperf.com/js-inheritance-performance/34 + http://jsperf.com/js-inheritance-performance/35 + http://jsperf.com/js-inheritance-performance/36
(function selfCall() {
Function selfCall
has 292 lines of code (exceeds 25 allowed). Consider refactoring. Open
(function selfCall() {
var isNode = typeof global != "undefined";
if (!String.prototype.format) {
var regexes = {};
String.prototype.format = function format(parameters) {