Showing 181 of 235 total issues
Function createHybridWrapper
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
Function random
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function random(min, max, floating) {
if (floating && isIterateeCall(min, max, floating)) {
max = floating = undefined;
}
var noMin = min == null,
Function executeAnimationFn
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function executeAnimationFn(fn, element, event, options, onDone) {
var args;
switch (event) {
case 'animate':
args = [element, options.from, options.to, onDone];
Method register_peer
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def register_peer(peer_params, user = nil)
torrent = Torrent.where(info_hash: peer_params[:info_hash]).first
peer = Peer.find_or_create_by!(torrent_id: torrent, peer_id: peer_params[:peer_id])
peer.torrent = torrent
peer.update_attributes(
Function groupEventedAnimations
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function groupEventedAnimations(element, event, options, animations, fnName) {
var operations = [];
forEach(animations, function(ani) {
var animation = ani[fnName];
if (!animation) return;
Function binaryIndexBy
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function binaryIndexBy(array, value, iteratee, retHighest) {
value = iteratee(value);
var low = 0,
high = array ? array.length : 0,
Function okCallback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var okCallback = function(response) {
var resData = response.data;
var fullParams = response.config.params;
var elem = parseResponse(resData, operation, route, fetchUrl, response, deferred);
if (elem) {
Function baseMerge
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function baseMerge(object, source, customizer, stackA, stackB) {
if (!isObject(object)) {
return object;
}
var isSrcArr = isArrayLike(source) && (isArray(source) || isTypedArray(source)),
Function okCallback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var okCallback = function(response) {
var resData = response.data;
var fullParams = response.config.params;
var elem = parseResponse(resData, operation, route, fetchUrl, response, deferred);
if (elem) {
Function start
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
var runner;
var currentAnimation = startingAnimator.start();
currentAnimation.done(function() {
Function $get
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($$rAF, $rootScope, $rootElement, $document, $$HashMap,
$$animation, $$AnimateRunner, $templateRequest, $$jqLite) {
Function determineTranslationInstant
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var determineTranslationInstant = function (translationId, interpolateParams, interpolationId) {
var result, table = $uses ? $translationTable[$uses] : $translationTable,
Interpolator = defaultInterpolator;
Function equalArrays
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {
var index = -1,
arrLength = array.length,
othLength = other.length;
Function resource
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
BaseCreator.prototype.resource = function(current, $http, localHttpConfig, callHeaders, callParams, what, etag,operation) {
Function resource
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
BaseCreator.prototype.resource = function(current, $http, localHttpConfig, callHeaders, callParams, what, etag,operation) {
Function createWrapper
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
Consider simplifying this complex logical expression. Open
Open
if (objCtor != othCtor &&
('constructor' in object && 'constructor' in other) &&
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
return false;
Function $get
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($window, $$jqLite, $$AnimateRunner, $timeout,
$document, $sniffer, $$rAFScheduler) {
Function fullRequestInterceptor
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
config.fullRequestInterceptor = function(element, operation, path, url, headers, params, httpConfig) {
Function $get
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {