Showing 295 of 1,637 total issues
Avoid deeply nested control flow statements. Open
Open
if (climbScope.hasOwnProperty('$historyId')) {
return true;
}
Avoid deeply nested control flow statements. Open
Open
for (y = 0; y < data[k][x].t; y++) {
createSvgElement(k, data[k][x].fn(y, spinnerName), ele, spinnerName);
}
Avoid deeply nested control flow statements. Open
Open
if (forwardView && currentView.stateId !== forwardView.stateId &&
currentView.historyId === forwardView.historyId) {
// they navigated to a new view but the stack already has a forward view
// since its a new view remove any forwards that existed
tmp = getHistoryById(forwardView.historyId);
Function start
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root) {
Avoid deeply nested control flow statements. Open
Open
if (isArray(encoded)) {
result += map(encoded, encodeDashes).join("-");
} else {
result += encodeURIComponent(encoded);
}
Consider simplifying this complex logical expression. Open
Open
if ((isBackShown && isNavBackShown && isBackEnabled) !== isBackElementShown) {
isBackElementShown = isBackShown && isNavBackShown && isBackEnabled;
ele = getEle(BACK_BUTTON);
ele && ele.classList[ isBackElementShown ? 'remove' : 'add' ](HIDE);
}
Consider simplifying this complex logical expression. Open
Open
if ( !(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || element.attr('target')) ) {
// HACK: This is to allow ng-clicks to be processed before the transition is initiated:
var transition = $timeout(function() {
$state.go(ref.state, params, options);
});
Consider simplifying this complex logical expression. Open
Open
if (self.__isDragging) {
self.__decStopped = false;
// Compute move distance
var moveX = currentTouchLeft - self.__lastTouchLeft;
Consider simplifying this complex logical expression. Open
Open
if (self.options.freeze || !self.__isDown ||
(!self.__isDown && e.defaultPrevented) ||
(e.target.tagName === 'TEXTAREA' && e.target.parentElement.querySelector(':focus')) ) {
return;
}
Consider simplifying this complex logical expression. Open
Open
if (!self.options.freeze && scrollParent === self.__container) {
self.hintResize();
self.scrollBy(
(e.wheelDeltaX || e.deltaX || 0) / self.options.wheelDampen,
Consider simplifying this complex logical expression. Open
Open
if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined') {
Object.defineProperty(HTMLElement.prototype, 'classList', {
get: function() {
var self = this;
function update(fn) {
Function postLink
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function postLink(scope, element, attr, scrollCtrl, transclude) {
Function addAttributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function addAttributes( section, element, previousElement, separatorElementAttributes, separatorSectionAttributes ) {
Function $get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($$jqLite, $rootScope, $injector, $$AnimateRunner, $$rAFScheduler) {
Function groupEventedAnimations
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function groupEventedAnimations(element, event, options, animations, fnName) {
Function executeAnimationFn
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function executeAnimationFn(fn, element, event, options, onDone) {
Function packageAnimations
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function packageAnimations(element, event, options, animations, fnName) {
Function setDimensions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
setDimensions: function(clientWidth, clientHeight, contentWidth, contentHeight, continueScrolling) {
Function scrollTo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
scrollTo: function(left, top, animate, zoom, wasResize) {
Function __publish
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
__publish: function(left, top, zoom, animate, wasResize) {