Showing 290 of 632 total issues
Function domManip
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
domManip: function( args, callback ) {
// Flatten any nested arrays
args = concat.apply( [], args );
Function $Browser
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.$Browser = function() {
var self = this;
this.isMock = true;
self.$$url = "http://server/";
Function init
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init = jQuery.fn.init = function( selector, context ) {
var match, elem;
// HANDLE: $(""), $(null), $(undefined), $(false)
if ( !selector ) {
Function ajaxConvert
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxConvert( s, response, jqXHR, isSuccess ) {
var conv2, current, conv, tmp, prev,
converters = {},
// Work with a copy of dataTypes in case we need to modify it for conversion
dataTypes = s.dataTypes.slice();
Function $httpBackend
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $httpBackend(method, url, data, callback, headers, timeout, withCredentials) {
var xhr = new MockXhr(),
expectation = expectations[0],
wasExpected = false;
Function link
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attrs) {
var initialAnimSkip = true;
var currentTransition;
Function link
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attrs) {
var initialAnimSkip = true;
var currentTransition;
Function fullTextSearch
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'fullTextSearch': function (from, size, text) {
return es.search({
index: 'musicalbum',
type: 'album',
body: {
Function $LogProvider
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.$LogProvider = function() {
var debug = true;
function concat(array1, array2, index) {
return array1.concat(Array.prototype.slice.call(array2, index));
Function data
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function( key, value ) {
var i, name, data,
elem = this[ 0 ],
attrs = elem && elem.attributes;
Function remove
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var j, origCount, tmp,
events, t, handleObj,
special, handlers, type, namespaces, origType,
Consider simplifying this complex logical expression. Open
Open
if ( ( mappedTypes || origType === handleObj.origType ) &&
( !handler || handler.guid === handleObj.guid ) &&
( !tmp || tmp.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
handlers.splice( j, 1 );
Function open
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$modal.open = function (modalOptions) {
var modalResultDeferred = $q.defer();
var modalOpenedDeferred = $q.defer();
Function show
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.show = function () {
var e = $.Event('show.bs.' + this.type)
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
Function open
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$modal.open = function (modalOptions) {
var modalResultDeferred = $q.defer();
var modalOpenedDeferred = $q.defer();
Function show
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.show = function () {
var e = $.Event('show.bs.' + this.type)
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
Function buildFragment
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildFragment: function( elems, context, scripts, selection ) {
var elem, tmp, tag, wrap, contains, j,
fragment = context.createDocumentFragment(),
nodes = [],
i = 0,
Function send
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
send: function( headers, complete ) {
var i,
xhr = options.xhr(),
id = ++xhrId;
Function ngViewFactory
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ngViewFactory( $route, $anchorScroll, $animate) {
return {
restrict: 'ECA',
terminal: true,
priority: 400,
Function tokenize
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenize( selector, parseOnly ) {
var matched, match, tokens, type,
soFar, groups, preFilters,
cached = tokenCache[ selector + " " ];