Showing 371 of 463 total issues
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 + " " ];
Function $httpBackend
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $httpBackend(method, url, data, callback, headers) {
var xhr = new MockXhr(),
expectation = expectations[0],
wasExpected = false;
Function select
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function select( selector, context, results, seed ) {
var i, tokens, token, type, find,
match = tokenize( selector );
if ( !seed ) {
Function parse
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Date.parse = function parse(string) {
var match = isoDateExpression.exec(string);
if (match) {
// parse months, days, hours, minutes, seconds, and milliseconds
// provide default values if necessary
Function dump
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.dump = function(object) {
return serialize(object);
function serialize(object) {
var out;
Function bindFn
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bind: function bindFn(element, type, fn){
var events = JQLiteExpandoStore(element, 'events'),
handle = JQLiteExpandoStore(element, 'handle');
if (!events) JQLiteExpandoStore(element, 'events', events = {});
Function classDirective
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function classDirective(name, selector) {
name = 'ngClass' + name;
return ngDirective(function(scope, element, attr) {
var oldVal = undefined;
Function matcherFromTokens
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromTokens( tokens ) {
var checkContext, matcher, j,
len = tokens.length,
leadingRelative = Expr.relative[ tokens[0].type ],
implicitRelative = leadingRelative || Expr.relative[" "],
Function ParsedURL
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
WebInspector.ParsedURL = function(url)
{
this.isValid = false;
this.url = url;
this.scheme = "";
Function ngViewDirective
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($http, $templateCache, $route, $anchorScroll, $compile,
$controller) {
return {
restrict: 'ECA',
terminal: true,
Function attr
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.attr = function( elem, name, value, pass ) {
var lowerName = name.toLowerCase(),
nType = elem && elem.nodeType;
if ( pass ) {
Function readString
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function readString(quote) {
var start = index;
index++;
var string = "";
var rawString = quote;
Function getterFn
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getterFn(path, csp) {
if (getterFnCache.hasOwnProperty(path)) {
return getterFnCache[path];
}
Function formDirectiveFactory
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var formDirectiveFactory = function(isNgForm) {
return ['$timeout', function($timeout) {
var formDirective = {
name: 'form',
restrict: 'E',
Function htmlSanitizeWriter
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlSanitizeWriter(buf){
var ignore = false;
var out = angular.bind(buf, buf.push);
return {
start: function(tag, attrs, unary){
Function addCombinator
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addCombinator( matcher, combinator, base ) {
var dir = combinator.dir,
checkNonElements = base && dir === "parentNode",
doneName = done++;
Function module
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function module(name, requires, configFn) {
if (requires && modules.hasOwnProperty(name)) {
modules[name] = null;
}
return ensure(modules, name, function() {
Function createEventHandler
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createEventHandler(element, events) {
var eventHandler = function (event, type) {
if (!event.preventDefault) {
event.preventDefault = function() {
event.returnValue = false; //ie
Function val
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var hooks, ret, isFunction,
elem = this[0];
if ( !arguments.length ) {
Function extend
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,