sahat/satellizer

View on GitHub

Showing 300 of 562 total issues

Function setClass has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        setClass: function(element, add, remove, options) {
          options = parseAnimateOptions(options);

          var STORAGE_KEY = '$$animateClasses';
          element = angular.element(element);
Severity: Major
Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 2 hrs to fix

    Function getRenderFn has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      getRenderFn: function() {
        var self = this;
    
        var content = self.__content;
    
    
    Severity: Major
    Found in examples/ionic/www/lib/ionic/js/ionic.js - About 2 hrs to fix

      Function compile has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          compile: function(tElement, tAttrs) {
      
            // clone the back button, but as a <div>
            var buttonEle = $document[0].createElement('button');
            for (var n in tAttrs.$attr) {
      Severity: Major
      Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 2 hrs to fix

        Function $StateRefDirective has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function $StateRefDirective($state, $timeout) {
          var allowedOptions = ['location', 'inherit', 'reload'];
        
          return {
            restrict: 'A',
        Severity: Major
        Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 2 hrs to fix

          Function end has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                end: function() {
          
                  // measure duration
                  var duration = +new Date() - start.time;
          
          
          Severity: Major
          Found in examples/ionic/www/lib/ionic/js/ionic.js - About 2 hrs to fix

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

            /**
             * @license AngularJS v1.3.13
             * (c) 2010-2014 Google, Inc. http://angularjs.org
             * License: MIT
             */
            Severity: Minor
            Found in examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 2 hrs to fix

              Function compile has 53 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  compile: function (tElement, tAttrs, $transclude) {
                    return function (scope, $element, attrs) {
                      var previousEl, currentEl, currentScope, latestLocals,
                          onloadExp     = attrs.onload || '',
                          autoScrollExp = attrs.autoscroll,
              Severity: Major
              Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 2 hrs to fix

                Function compile has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    compile: function(element) {
                      element.addClass('scroll-view ionic-scroll');
                
                      //We cannot transclude here because it breaks element.data() inheritance on compile
                      var innerElement = jqLite('<div class="scroll"></div>');
                Severity: Major
                Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 2 hrs to fix

                  Function __publish has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    __publish: function(left, top, zoom, animate, wasResize) {
                  
                      var self = this;
                  
                      // Remember whether we had an animation, then we try to continue based on the current "drive" of the animation
                  Severity: Major
                  Found in examples/ionic/www/lib/ionic/js/ionic.js - About 2 hrs to fix

                    Function decodeBase64 has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export function decodeBase64 (str) {
                      let buffer;
                      if (typeof module !== 'undefined' && module.exports) {
                        try {
                          buffer = require('buffer').Buffer;
                    Severity: Major
                    Found in src/utils.ts - About 2 hrs to fix

                      Function onTouch has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          onTouch: function onTouch(element, eventType, handler) {
                            var self = this;
                      
                            this.bindDom(element, ionic.Gestures.EVENT_TYPES[eventType], function bindDomOnTouch(ev) {
                              var sourceEventType = ev.type.toLowerCase();
                      Severity: Minor
                      Found in examples/ionic/www/lib/ionic/js/ionic.js - About 2 hrs to fix

                        Function show has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            show: function(target) {
                              var self = this;
                        
                              if (self.scope.$$destroyed) {
                                $log.error('Cannot call ' + self.viewType + '.show() after remove(). Please create a new ' + self.viewType + ' instance.');
                        Severity: Minor
                        Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 1 hr to fix

                          Method facebook has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function facebook(Request $request)
                              {
                                  $client = new GuzzleHttp\Client();
                          
                                  $params = [
                          Severity: Minor
                          Found in examples/server/php/app/Http/Controllers/AuthController.php - About 1 hr to fix

                            Function headerFooterBarDirective has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function headerFooterBarDirective(isHeader) {
                              return ['$document', '$timeout', function($document, $timeout) {
                                return {
                                  restrict: 'E',
                                  controller: '$ionicHeaderBar',
                            Severity: Minor
                            Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 1 hr to fix

                              Function start has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root) {
                              
                                    var start = time();
                                    var lastFrame = start;
                                    var percent = 0;
                              Severity: Minor
                              Found in examples/ionic/www/lib/ionic/js/ionic.js - About 1 hr to fix

                                Function link has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    link: function(scope, element, attrs, uiSrefActive) {
                                      var ref = parseStateRef(attrs.uiSref, $state.current.name);
                                      var params = null, url = null, base = stateContext(element) || $state.$current;
                                      var newHref = null, isAnchor = element.prop("tagName") === "A";
                                      var isForm = element[0].nodeName === "FORM";
                                Severity: Minor
                                Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 1 hr to fix

                                  Function decodeBase64 has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function decodeBase64(str) {
                                          var buffer;
                                          if (typeof module !== 'undefined' && module.exports) {
                                              try {
                                                  buffer = require('buffer').Buffer;
                                  Severity: Minor
                                  Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                                    Function bindDomOnTouch has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          this.bindDom(element, ionic.Gestures.EVENT_TYPES[eventType], function bindDomOnTouch(ev) {
                                            var sourceEventType = ev.type.toLowerCase();
                                    
                                            // onmouseup, but when touchend has been fired we do nothing.
                                            // this is for touchdevices which also fire a mouseup on touchend
                                    Severity: Minor
                                    Found in examples/ionic/www/lib/ionic/js/ionic.js - About 1 hr to fix

                                      Method linkedin has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function linkedin(Request $request)
                                          {
                                              $client = new GuzzleHttp\Client();
                                      
                                              $params = [
                                      Severity: Minor
                                      Found in examples/server/php/app/Http/Controllers/AuthController.php - About 1 hr to fix

                                        Method foursquare has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function foursquare(Request $request)
                                            {
                                                $client = new GuzzleHttp\Client();
                                        
                                                $params = [
                                        Severity: Minor
                                        Found in examples/server/php/app/Http/Controllers/AuthController.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language