Showing 19 of 36 total issues
Function $SanitizeProvider
has 243 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $SanitizeProvider() {
var svgEnabled = false;
this.$get = ['$$sanitizeUri', function($$sanitizeUri) {
if (svgEnabled) {
Function $RouteProvider
has 231 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $RouteProvider() {
isArray = angular.isArray;
isObject = angular.isObject;
function inherit(parent, extra) {
Function $get
has 158 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
/**
* @ngdoc service
* @name $route
File angular-route.js
has 344 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.5.10
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
File angular-sanitize.js
has 321 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.5.10
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
Function ngViewFactory
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ngViewFactory($route, $anchorScroll, $animate) {
return {
restrict: 'ECA',
terminal: true,
priority: 400,
Function getTopicInfo
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTopicInfo(topicid, limit) {
var topicinfo = {'topicId': topicid}
return new Promise (function(resolve) {
var getNameSql = 'select name from topics where id = ?';
var getNameSql_Params = [topicid];
Function htmlParserImpl
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlParserImpl(html, handler) {
if (html === null || html === undefined) {
html = '';
} else if (typeof html !== 'string') {
html = '' + html;
Function link
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, $element, attr, ctrl, $transclude) {
var currentScope,
currentElement,
previousLeaveAnimation,
autoScrollExp = attr.autoscroll,
Function htmlSanitizeWriterImpl
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlSanitizeWriterImpl(buf, uriValidator) {
var ignoreCurrentElement = false;
var out = bind(buf, buf.push);
return {
start: function(tag, attrs) {
Function commitRoute
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function commitRoute() {
var lastRoute = $route.current;
var nextRoute = preparedRoute;
if (preparedRouteIsUpdateOnly) {
Function getTopicInfo
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTopicInfo(topicid, limit) {
var topicinfo = {'topicId': topicid}
return (new Promise(function(resolve) {
client.get("topic:" + topicid + ":name", function(err, reply) {
topicinfo.topic = reply;
Function getTopicInfo
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTopicInfo(topicid, limit) {
var topicinfo = {'topicId': topicid}
return (new Promise(function(resolve) {
client.get("topic:" + topicid + ":name", function(err, reply) {
topicinfo.topic = reply;
Function $$CookieWriter
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $$CookieWriter($document, $log, $browser) {
var cookiePath = $browser.baseHref();
var rawDocument = $document[0];
function buildCookieString(name, value, options) {
Function $CookiesProvider
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
provider('$cookies', [/** @this */function $CookiesProvider() {
/**
* @ngdoc property
* @name $cookiesProvider#defaults
* @description
Function $get
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
Avoid deeply nested control flow statements. Open
Open
if (node.nodeType === 1) {
handler.end(node.nodeName.toLowerCase());
}
Avoid deeply nested control flow statements. Open
Open
if (node === inertBodyElement) break;
Function link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
link: function(scope, $element, attr, ctrl, $transclude) {