Showing 463 of 463 total issues
Function cookies
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.cookies = function(name, value) {
var cookieLength, cookieArray, cookie, i, index;
if (name) {
if (value === undefined) {
Function HAREntry
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HAREntry(entry, id, start_time, data) {
this._entry = entry;
this._id = id;
// Response
Function compile
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function() {
return {
pre: function(scope, formElement, attr, controller) {
if (!attr.action) {
// we can't use jq events because if a form is destroyed during submission the default
Function $get
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($rootScope, $browser, $q, $exceptionHandler) {
var deferreds = {};
/**
Function url
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
url: function(params) {
var self = this,
url = this.template,
val,
encodedVal;
Function LocationHashbangUrl
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function LocationHashbangUrl(url, hashPrefix, appBaseUrl) {
var basePath;
/**
* Parse given hashbang url into properties
Function when
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var when = function(value, callback, errback) {
var result = defer(),
done;
var wrappedCallback = function(value) {
Function handlers
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handlers: function( event, handlers ) {
var i, matches, sel, handleObj,
handlerQueue = [],
delegateCount = handlers.delegateCount,
cur = event.target;
Function attr
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value ) {
var hooks, ret,
nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes
Function $get
has 30 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 parseHash
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var parseHash = ui.parseHash = function parseHash() {
var hashes = location.hash.slice(1).split('&'),
parameters = this.parameters || (this.parameters = {});
// Clear original parameters.
Function bootstrap
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bootstrap(element, modules) {
var doBootstrap = function() {
element = jqLite(element);
modules = modules || [];
modules.unshift(['$provide', function($provide) {
Function compile
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(element, attr) {
if (isUndefined(attr.value)) {
var interpolateFn = $interpolate(element.text(), true);
if (!interpolateFn) {
attr.$set('value', element.text());
Function JQLitePatchJQueryRemove
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function JQLitePatchJQueryRemove(name, dispatchThis, filterElems, getterIfNoArguments) {
var originalJqFn = jQuery.fn[name];
originalJqFn = originalJqFn.$original || originalJqFn;
removePatch.$original = originalJqFn;
jQuery.fn[name] = removePatch;
Function invoke
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function invoke(fn, self, locals){
var args = [],
$inject = annotate(fn),
length, i,
key;
Function ngPluralizeDirective
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interpolate) {
var BRACE = /{}/g;
return {
restrict: 'EA',
link: function(scope, element, attr) {
Function addClass
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addClass: function( value ) {
var classes, elem, cur, clazz, j,
i = 0,
len = this.length,
proceed = typeof value === "string" && value;
Function removeClass
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeClass: function( value ) {
var classes, elem, cur, clazz, j,
i = 0,
len = this.length,
proceed = arguments.length === 0 || typeof value === "string" && value;
Function toggleClass
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleClass: function( value, stateVal ) {
var type = typeof value;
if ( typeof stateVal === "boolean" && type === "string" ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );
Function $get
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($injector, $interpolate, $exceptionHandler, $http, $templateCache, $parse,
$controller, $rootScope, $document) {