Showing 181 of 235 total issues
Function instant
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$translate.instant = function (translationId, interpolateParams, interpolationId) {
// Detect undefined and null values to shorten the execution and prevent exceptions
if (translationId === null || angular.isUndefined(translationId)) {
return translationId;
Function $$AnimateJsDriverProvider
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$AnimateJsDriverProvider = ['$$animationProvider', function($$animationProvider) {
$$animationProvider.drivers.push('$$animateJsDriver');
this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
return function initDriverFn(animationDetails) {
if (animationDetails.from && animationDetails.to) {
Function resolveElementClasses
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolveElementClasses(existing, toAdd, toRemove) {
var ADD_CLASS = 1;
var REMOVE_CLASS = -1;
var flags = {};
Function okCallback
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var okCallback = function(response) {
var resData = response.data;
var fullParams = response.config.params;
var data = parseResponse(resData, operation, whatFetched, url, response, deferred);
Function okCallback
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var okCallback = function(response) {
var resData = response.data;
var fullParams = response.config.params;
var data = parseResponse(resData, operation, whatFetched, url, response, deferred);
Function mixin
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mixin(object, source, options) {
if (options == null) {
var isObj = isObject(source),
props = isObj ? keys(source) : undefined,
methodNames = (props && props.length) ? baseFunctions(source, props) : undefined;
Function baseClone
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
var result;
if (customizer) {
result = object ? customizer(value, key, object) : customizer(value);
}
Function loadAsync
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loadAsync = function (key) {
if (!key) {
throw 'No language key specified for loading.';
}
Function start
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
var closeActiveAnimations;
var chain = [];
if (before) {
Function areAnimationsAllowed
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function areAnimationsAllowed(element, parentElement, event) {
var bodyElementDetected = false;
var rootElementDetected = false;
var parentAnimationDetected = false;
var animateChildren;
Function $get
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
return function initDriverFn(animationDetails) {
if (animationDetails.from && animationDetails.to) {
var fromAnimation = prepareAnimation(animationDetails.from);
var toAnimation = prepareAnimation(animationDetails.to);
Function $get
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = ['$injector', '$log', function ($injector, $log) {
var applyStrategies = function (value, mode, selectedStrategies) {
angular.forEach(selectedStrategies, function (selectedStrategy) {
if (angular.isFunction(selectedStrategy)) {
Function lazyValue
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lazyValue() {
var array = this.__wrapped__.value(),
dir = this.__dir__,
isArr = isArray(array),
isRight = dir < 0,
Function mergeData
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mergeData(data, source) {
var bitmask = data[1],
srcBitmask = source[1],
newBitmask = bitmask | srcBitmask,
isCommon = newBitmask < ARY_FLAG;
Function createFlow
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createFlow(fromRight) {
return function() {
var wrapper,
length = arguments.length,
index = fromRight ? length : -1,
Function exports
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
grunt.initConfig({
Function fetchRequestedUrl
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Path.prototype.fetchRequestedUrl = function(current, what) {
var url = this.fetchUrl(current, what);
var params = current[config.restangularFields.reqParams];
// From here on and until the end of fetchRequestedUrl,
Function fetchRequestedUrl
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Path.prototype.fetchRequestedUrl = function(current, what) {
var url = this.fetchUrl(current, what);
var params = current[config.restangularFields.reqParams];
// From here on and until the end of fetchRequestedUrl,
Function prepareFromToAnchorAnimation
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareFromToAnchorAnimation(from, to, classes, anchors) {
var fromAnimation = prepareRegularAnimation(from);
var toAnimation = prepareRegularAnimation(to);
var anchorAnimations = [];
Function use
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$translate.use = function (key) {
if (!key) {
return $uses;
}