Showing 181 of 235 total issues
Function template
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function template(string, options, otherOptions) {
// Based on John Resig's `tmpl` implementation (http://ejohn.org/blog/javascript-micro-templating/)
// and Laura Doktorova's doT.js (https://github.com/olado/doT).
var settings = lodash.templateSettings;
Function elemFunction
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function elemFunction(operation, what, params, obj, headers) {
var __this = this;
var deferred = $q.defer();
var resParams = params || {};
var route = what || this[config.restangularFields.route];
Function elemFunction
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function elemFunction(operation, what, params, obj, headers) {
var __this = this;
var deferred = $q.defer();
var resParams = params || {};
var route = what || this[config.restangularFields.route];
Function fetchFunction
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetchFunction(what, reqParams, headers) {
var __this = this;
var deferred = $q.defer();
var operation = 'getList';
var url = urlHandler.fetchUrl(this, what);
Function fetchFunction
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetchFunction(what, reqParams, headers) {
var __this = this;
var deferred = $q.defer();
var operation = 'getList';
var url = urlHandler.fetchUrl(this, what);
Function triggerAnimationStart
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function triggerAnimationStart() {
// just incase a stagger animation kicks in when the animation
// itself was cancelled entirely
if (animationClosed) return;
Function groupAnimations
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function groupAnimations(animations) {
var preparedAnimations = [];
var refLookup = {};
forEach(animations, function(animation, index) {
var element = animation.element;
Function resource
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BaseCreator.prototype.resource = function(current, $http, localHttpConfig, callHeaders, callParams, what, etag,operation) {
var params = _.defaults(callParams || {}, this.config.defaultRequestParams.common);
var headers = _.defaults(callHeaders || {}, this.config.defaultHeaders);
Function resource
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BaseCreator.prototype.resource = function(current, $http, localHttpConfig, callHeaders, callParams, what, etag,operation) {
var params = _.defaults(callParams || {}, this.config.defaultRequestParams.common);
var headers = _.defaults(callHeaders || {}, this.config.defaultHeaders);
Function commitRoute
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function commitRoute() {
var lastRoute = $route.current;
var nextRoute = preparedRoute;
if (preparedRouteIsUpdateOnly) {
Function createHybridWrapper
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
var isAry = bitmask & ARY_FLAG,
isBind = bitmask & BIND_FLAG,
isBindKey = bitmask & BIND_KEY_FLAG,
isCurry = bitmask & CURRY_FLAG,
Function ngViewFactory
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ngViewFactory($route, $anchorScroll, $animate) {
return {
restrict: 'ECA',
terminal: true,
priority: 400,
Function $translate
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $translate = function (translationId, interpolateParams, interpolationId, defaultTranslationText) {
// Duck detection: If the first argument is an array, a bunch of translations was requested.
// The result is an object.
if (angular.isArray(translationId)) {
Function addMessage
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.addMessage = function (message) {
var directive, messages, found, msgText;
if (this.directives[message.referenceId]) {
directive = this.directives[message.referenceId];
} else {
Function controller
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($scope, $timeout, growl, growlMessages) {
$scope.referenceId = $scope.reference || 0;
growlMessages.initDirective($scope.referenceId, $scope.limitMessages);
$scope.growlMessages = growlMessages;
$scope.inlineMessage = angular.isDefined($scope.inline) ? $scope.inline : growl.inlineMessages();
Function refresh
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$translate.refresh = function (langKey) {
if (!$loaderFactory) {
throw new Error('Couldn\'t refresh translation table, no loader registered!');
}
Function baseIsEqualDeep
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
var objIsArr = isArray(object),
othIsArr = isArray(other),
objTag = arrayTag,
othTag = arrayTag;
Function wrapper
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wrapper() {
// Avoid `arguments` object use disqualifying optimizations by
// converting it to an array before providing it to other functions.
var length = arguments.length,
index = length,
Function link
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, $element, attr, ctrl, $transclude) {
var currentScope,
currentElement,
previousLeaveAnimation,
autoScrollExp = attr.autoscroll,
Function trunc
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function trunc(string, options, guard) {
if (guard && isIterateeCall(string, options, guard)) {
options = undefined;
}
var length = DEFAULT_TRUNC_LENGTH,