Showing 295 of 1,635 total issues
File ionic-angular.js
has 7439 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.1.0
File ionic.js
has 4890 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.1.0
File reveal.js
has 2310 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* reveal.js
* http://lab.hakim.se/reveal-js
* MIT licensed
*
File angular-animate.js
has 2040 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.4.3
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
File angular-ui-router.js
has 1637 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* State-based routing for AngularJS
* @version v0.2.13
* @link http://angular-ui.github.com/
* @license MIT License, http://www.opensource.org/licenses/MIT
Function RepeatManagerFactory
has 460 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function RepeatManagerFactory($rootScope, $window, $$rAF) {
var EMPTY_DIMENSION = { primaryPos: 0, secondaryPos: 0, primarySize: 0, secondarySize: 0, rowPrimarySize: 0 };
return function RepeatController(options) {
var afterItemsNode = options.afterItemsNode;
Function RepeatController
has 457 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function RepeatController(options) {
var afterItemsNode = options.afterItemsNode;
var containerNode = options.containerNode;
var forceRefreshImages = options.forceRefreshImages;
var heightData = options.heightData;
Function $$AnimateQueueProvider
has 411 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
var PRE_DIGEST_STATE = 1;
var RUNNING_STATE = 2;
var rules = this.rules = {
Function $StateProvider
has 400 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
var root, states = {}, $state, queue = {}, abstractKey = 'abstract';
// Builds state properties from definition passed to registerState()
Function $AnimateCssProvider
has 398 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
var gcsLookup = createLocalCacheLookup();
var gcsStaggerLookup = createLocalCacheLookup();
this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout',
Function $get
has 391 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($window, $$jqLite, $$AnimateRunner, $timeout,
$document, $sniffer, $$rAFScheduler) {
var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
Function $get
has 365 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($$rAF, $rootScope, $rootElement, $document, $$HashMap,
$$animation, $$AnimateRunner, $templateRequest, $$jqLite) {
var activeAnimationsLookup = new $$HashMap();
var disabledElementsLookup = new $$HashMap();
Function initialize
has 364 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function (options) {
var slider = this;
// utilities
var noop = function() {}; // simple no operation function
Function init
has 327 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init(element, options) {
var node = getDomNode(element);
if (!node || !node.parentNode) {
return closeAndReturnNoopAnimator();
}
Function RevealSearch
has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring. Open
Open
var RevealSearch = (function() {
var matchedSlides;
var currentMatchedIndex;
var searchboxDirty;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function $$AnimationProvider
has 254 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
var NG_ANIMATE_REF_ATTR = 'ng-animate-ref';
var drivers = this.drivers = [];
Function $UrlMatcherFactory
has 249 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $UrlMatcherFactory() {
$$UMFP = this;
var isCaseInsensitive = false, isStrictMode = true, defaultSquashPolicy = false;
Function $get
has 239 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($$jqLite, $rootScope, $injector, $$AnimateRunner, $$rAFScheduler) {
var animationQueue = [];
var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
Function CollectionRepeatDirective
has 230 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CollectionRepeatDirective($ionicCollectionManager, $parse, $window, $$rAF, $rootScope, $timeout) {
return {
restrict: 'A',
priority: 1000,
transclude: 'element',
Function postLink
has 220 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function postLink(scope, element, attr, scrollCtrl, transclude) {
var scrollView = scrollCtrl.scrollView;
var node = element[0];
var containerNode = angular.element('<div class="collection-repeat-container">')[0];
node.parentNode.replaceChild(containerNode, node);