Showing 256 of 374 total issues
Function activateBindingsOnContinuousNodeArray
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function activateBindingsOnContinuousNodeArray(continuousNodeArray, bindingContext) {
// To be used on any nodes that have been rendered by a template and have been inserted into some parent element
// Walks through continuousNodeArray (which *must* be continuous, i.e., an uninterrupted sequence of sibling nodes, because
// the algorithm for walking them relies on this), and for each top-level item in the virtual-element sense,
// (1) Does a regular "applyBindings" to associate bindingContext with this node and to activate any non-memoized bindings
Function format
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
format = function() {
var args = arguments,
str = this
return this.replace(FORMAT_RE, function() {
Function extend
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function extend() {
'use strict';
var options, name, src, copy, copyIsArray, clone,
target = arguments[0],
i = 1,
Function reconnect
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Manager.prototype.reconnect = function(){
if (this.reconnecting || this.skipReconnect) return this;
var self = this;
this.attempts++;
Function postJson
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
postJson: function (urlOrForm, data, options) {
options = options || {};
var params = options['params'] || {};
var includeFields = options['includeFields'] || this.fieldsIncludedWithJsonPost;
var url = urlOrForm;
Function fastClass
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Function_prototype.fastClass = function fastClass(creator, mixins) {
/// <signature>
/// <summary>Inherits the function's prototype to a new function named constructor returned by the creator parameter
///<br/><br/>
/// var Square = Figure.fastClass(function(base, baseCtor) { <br/>
Function onTransportOpen
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onTransportOpen(){
if (self.onlyBinaryUpgrades) {
var upgradeLosesBinary = !this.supportsBinary && self.transport.supportsBinary;
failed = failed || upgradeLosesBinary;
}
Function update
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function(build) {
if (build && build.conf) {
var conf = build.conf;
this.conf = conf;
this.name(conf.name);
Function update
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function(build) {
if (build && build.conf) {
var conf = build.conf;
this.conf = conf;
this.name(conf.name);
Function limit
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
limit: function(limitFunction) {
var self = this, selfIsObservable = ko.isObservable(self),
isPending, previousValue, pendingValue, beforeChange = 'beforeChange';
if (!self._origNotifySubscribers) {
Function url
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function url(uri, loc){
var obj = uri;
// default to window.location
var loc = loc || global.location;
Function 42
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],42:[function(require,module,exports){
(function (global){
/*
* Module requirements.
Function 34
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],34:[function(require,module,exports){
(function (global){
/**
* Create a blob builder even when vendor prefixes exist
*/
Function removeBlobs
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.removeBlobs = function(data, callback) {
function _removeBlobs(obj, curKey, containingObject) {
if (!obj) return obj;
// convert any blob
Consider simplifying this complex logical expression. Open
Open
if ( (global.Buffer && global.Buffer.isBuffer(obj)) ||
(global.ArrayBuffer && obj instanceof ArrayBuffer) ||
(global.Blob && obj instanceof Blob) ||
(global.File && obj instanceof File)
) {
Consider simplifying this complex logical expression. Open
Open
if (badBuffer[i - 2] === badBuffer[i + 2] &&
badBuffer[i + 2] === badBuffer[i - 1] &&
badBuffer[i - 1] === badBuffer[i + 1] &&
badBuffer[i - 1] * 3 === badBuffer[i] &&
// Background around the foreground pattern? Not part of the specs.
Consider simplifying this complex logical expression. Open
Open
if ((frameBuffer[x + width * y] &&
frameBuffer[(x + 1) + width * y] &&
frameBuffer[x + width * (y + 1)] &&
frameBuffer[(x + 1) + width * (y + 1)]) ||
// All background colour.
Function toString
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toString: function(doNotIncludePrefix) {
var by, msg;
switch (this.by) {
case 'A':
by = '[SA] Server';
Function 45
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],45:[function(require,module,exports){
/**
* HOP ref.
*/
Function Function_define
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Function.define = function Function_define(func, prototype, mixins) {
/// <signature>
/// <summary>Extends the given func's prototype with provided members of prototype and ensures calling the mixins in the constructor</summary>
/// <param name="func" type="Function">Specify the constructor function you want to define i.e. function() {}</param>
/// <param name="prototype" type="Plain Object" optional="true">Specify an object that contain the functions or members that should defined on the provided func's prototype</param>