Showing 181 of 235 total issues
Function determineTranslation
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var determineTranslation = function (translationId, interpolateParams, interpolationId, defaultTranslationText) {
var deferred = $q.defer();
var table = $uses ? $translationTable[$uses] : $translationTable,
Function use
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$translate.use = function (key) {
if (!key) {
return $uses;
}
Function debounced
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function debounced() {
args = arguments;
stamp = now();
thisArg = this;
trailingCall = trailing && (timeoutId || !leading);
Function $$rAFSchedulerFactory
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) {
var tickQueue = [];
var cancelFn;
function scheduler(tasks) {
Function equalObjects
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
var objProps = keys(object),
objLength = objProps.length,
othProps = keys(other),
othLength = othProps.length;
Function createWrapper
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
var isBindKey = bitmask & BIND_KEY_FLAG;
if (!isBindKey && typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
Function restangularizeBase
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function restangularizeBase(parent, elem, route, reqParams, fromServer) {
elem[config.restangularFields.route] = route;
elem[config.restangularFields.getRestangularUrl] = _.bind(urlHandler.fetchUrl, urlHandler, elem);
elem[config.restangularFields.getRequestedUrl] = _.bind(urlHandler.fetchRequestedUrl, urlHandler, elem);
elem[config.restangularFields.addRestangularMethod] = _.bind(addRestangularMethodFunction, elem);
Function baseMergeDeep
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) {
var length = stackA.length,
srcValue = source[key];
while (length--) {
Function restangularizeBase
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function restangularizeBase(parent, elem, route, reqParams, fromServer) {
elem[config.restangularFields.route] = route;
elem[config.restangularFields.getRestangularUrl] = _.bind(urlHandler.fetchUrl, urlHandler, elem);
elem[config.restangularFields.getRequestedUrl] = _.bind(urlHandler.fetchRequestedUrl, urlHandler, elem);
elem[config.restangularFields.addRestangularMethod] = _.bind(addRestangularMethodFunction, elem);
Function negotiateLocale
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var negotiateLocale = function (preferred) {
var avail = [],
locale = angular.lowercase(preferred),
i = 0,
Function initDriverFn
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function initDriverFn(animationDetails) {
if (animationDetails.from && animationDetails.to) {
var fromAnimation = prepareAnimation(animationDetails.from);
var toAnimation = prepareAnimation(animationDetails.to);
if (!fromAnimation && !toAnimation) return;
Consider simplifying this complex logical expression. Open
Open
if ((value > other && !othIsNull) || !valIsReflexive ||
(valIsNull && !othIsUndef && othIsReflexive) ||
(valIsUndef && othIsReflexive)) {
return 1;
}
Consider simplifying this complex logical expression. Open
Open
if ((value < other && !valIsNull) || !othIsReflexive ||
(othIsNull && !valIsUndef && valIsReflexive) ||
(othIsUndef && valIsReflexive)) {
return -1;
}
Function baseIsMatch
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function baseIsMatch(object, matchData, customizer) {
var index = matchData.length,
length = index,
noCustomizer = !customizer;
Function base
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Path.prototype.base = function(current) {
var __this = this;
return _.reduce(this.parentsArray(current), function(acum, elem) {
var elemUrl;
var elemSelfLink = __this.config.getUrlFromElem(elem);
Function intersection
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var intersection = restParam(function(arrays) {
var othLength = arrays.length,
othIndex = othLength,
caches = Array(length),
indexOf = getIndexOf(),
Function base
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Path.prototype.base = function(current) {
var __this = this;
return _.reduce(this.parentsArray(current), function(acum, elem) {
var elemUrl;
var elemSelfLink = __this.config.getUrlFromElem(elem);
Function methodName
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
lodash.prototype[methodName] = function() {
var args = retUnwrapped ? [1] : arguments,
chainAll = this.__chain__,
value = this.__wrapped__,
isHybrid = !!this.__actions__.length,
Function baseDifference
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function baseDifference(array, values) {
var length = array ? array.length : 0,
result = [];
if (!length) {
Function packageAnimations
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function packageAnimations(element, event, options, animations, fnName) {
var operations = groupEventedAnimations(element, event, options, animations, fnName);
if (operations.length === 0) {
var a,b;
if (fnName === 'beforeSetClass') {