devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 295 of 1,635 total issues

File ionic-angular.js has 7439 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Copyright 2014 Drifty Co.
 * http://drifty.com/
 *
 * Ionic, v1.1.0
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 3 wks to fix

    File ionic.js has 4890 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * Copyright 2014 Drifty Co.
     * http://drifty.com/
     *
     * Ionic, v1.1.0
    Severity: Major
    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 2 wks to fix

      File reveal.js has 2310 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * reveal.js
       * http://lab.hakim.se/reveal-js
       * MIT licensed
       *
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 6 days to fix

        File angular-animate.js has 2040 lines of code (exceeds 250 allowed). Consider refactoring.
        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

          /**
           * 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

            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;
            Severity: Major
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 days to fix

              Function RepeatController has 457 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                return function RepeatController(options) {
                  var afterItemsNode = options.afterItemsNode;
                  var containerNode = options.containerNode;
                  var forceRefreshImages = options.forceRefreshImages;
                  var heightData = options.heightData;
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 days to fix

                Function $$AnimateQueueProvider has 411 lines of code (exceeds 25 allowed). Consider refactoring.
                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

                  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

                    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

                             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

                               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

                            initialize: function (options) {
                              var slider = this;
                          
                              // utilities
                              var noop = function() {}; // simple no operation function
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 day to fix

                            Function init has 327 lines of code (exceeds 25 allowed). Consider refactoring.
                            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

                              var RevealSearch = (function() {
                              
                                  var matchedSlides;
                                  var currentMatchedIndex;
                                  var searchboxDirty;
                              Severity: Minor
                              Found in meetups/meetup06-MobileDev/x-platform/plugin/search/search.js - About 1 day to fix

                              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

                              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

                                function $UrlMatcherFactory() {
                                  $$UMFP = this;
                                
                                  var isCaseInsensitive = false, isStrictMode = true, defaultSquashPolicy = false;
                                
                                

                                  Function $get has 239 lines of code (exceeds 25 allowed). Consider refactoring.
                                  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

                                    function CollectionRepeatDirective($ionicCollectionManager, $parse, $window, $$rAF, $rootScope, $timeout) {
                                      return {
                                        restrict: 'A',
                                        priority: 1000,
                                        transclude: 'element',
                                    Severity: Major
                                    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 day to fix

                                      Function postLink has 220 lines of code (exceeds 25 allowed). Consider refactoring.
                                      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);
                                      Severity: Major
                                      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 day to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language