Showing 2,008 of 4,250 total issues
Function loadModules
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadModules(modulesToLoad) {
assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');
var runBlocks = [], moduleFn;
forEach(modulesToLoad, function(module) {
if (loadedModules.get(module)) return;
Function close
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function close(rejected) {
// if the promise has been called already then we shouldn't close
// the animation again
if (animationClosed || (animationCompleted && animationPaused)) return;
animationClosed = true;
Function jqueryDeployment
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function jqueryDeployment(getVersion) {
return {
name: 'jquery',
examples: {
commonFiles: {
Function updateOptions
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateOptions() {
var previousValue = options && selectCtrl.readValue();
// We must remove all current options, but cannot simply set innerHTML = null
// since the providedEmptyOption might have an ngIf on it that inserts comments which we
Function ngRefDirective
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ngRefDirective = ['$parse', function($parse) {
return {
priority: -1, // Needed for compatibility with element transclusion on the same element
restrict: 'A',
compile: function(tElement, tAttrs) {
Function readString
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
readString: function(quote) {
var start = this.index;
this.index++;
var string = '';
var rawString = quote;
Function $get
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = ['$window', function($window) {
// Support: IE 9-11, Edge 12-14+
// IE/Edge display errors in such a way that it requires the user to click in 4 places
// to see the stack trace. There is no way to feature-detect it so there's a chance
// of the user agent sniffing to go wrong but since it's only about logging, this shouldn't
Function compositeLinkFn
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {
var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;
var stableNodeList;
Function $emit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$emit: function(name, args) {
var empty = [],
namedListeners,
scope = this,
stopPropagation = false,
Function DataController
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
app.controller('DataController', function DataController($rootScope, $scope) {
this.ngRepeatCount = 5000;
this.rows = [];
var self = this;
Function equals
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function equals(o1, o2) {
if (o1 === o2) return true;
if (o1 === null || o2 === null) return false;
// eslint-disable-next-line no-self-compare
if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
Function exports
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
grunt.registerTask('validate-angular-files', function() {
var combinedFiles = _.clone(files.angularModules);
combinedFiles.ng = files.angularSrc;
Function parsePattern
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parsePattern(pattern) {
var p = {
minInt: 1,
minFrac: 0,
maxFrac: 0,
Function $$CookieReader
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $$CookieReader($document) {
var rawDocument = $document[0] || {};
var lastCookies = {};
var lastCookieString = '';
Function getControllers
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getControllers(directiveName, require, $element, elementControllers) {
var value;
if (isString(require)) {
var match = require.match(REQUIRE_PREFIX_REGEXP);
Function registerDirective
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.directive = function registerDirective(name, directiveFactory) {
assertArg(name, 'name');
assertNotHasOwnProperty(name, 'directive');
if (isString(name)) {
assertValidDirectiveName(name);
Function $get
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function() {
var $log = {
log: function() { $log.log.logs.push(concat([], arguments, 0)); },
warn: function() { $log.warn.logs.push(concat([], arguments, 0)); },
info: function() { $log.info.logs.push(concat([], arguments, 0)); },
Function $get
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = [function() {
return {
cacheKey: function(node, method, addClass, removeClass) {
var parentNode = node.parentNode;
var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter);
Function jqLiteBuildFragment
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function jqLiteBuildFragment(html, context) {
var tmp, tag, wrap, finalHtml,
fragment = context.createDocumentFragment(),
nodes = [], i;
Function link
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attr, ngSwitchController) {
var watchExpr = attr.ngSwitch || attr.on,
selectedTranscludes = [],
selectedElements = [],
previousLeaveAnimations = [],