sahat/satellizer

View on GitHub

Showing 300 of 562 total issues

Function htmlParser has 105 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function htmlParser(html, handler) {
  if (typeof html !== 'string') {
    if (html === null || typeof html === 'undefined') {
      html = '';
    } else {
Severity: Major
Found in examples/ionic/www/lib/ionic/js/angular/angular-sanitize.js - About 4 hrs to fix

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

        compile: function(element, attr) {
    
          //We create the tabNavTemplate in the compile phase so that the
          //attributes we pass down won't be interpolated yet - we want
          //to pass down the 'raw' versions of the attributes
    Severity: Major
    Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 4 hrs to fix

      Function $ViewDirective has 104 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function $ViewDirective(   $state,   $injector,   $uiViewScroll,   $interpolate) {
      
        function getService() {
          return ($injector.has) ? function(service) {
            return $injector.has(service) ? $injector.get(service) : null;
      Severity: Major
      Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 4 hrs to fix

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

            compile: function(element, attr) {
              var innerElement;
              var scrollCtrl;
        
              element.addClass('scroll-content ionic-scroll');
        Severity: Major
        Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 3 hrs to fix

          Function initialize has 97 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            initialize: function(options) {
              var self = this;
          
              self.__container = options.el;
              self.__content = options.el.firstElementChild;
          Severity: Major
          Found in examples/ionic/www/lib/ionic/js/ionic.js - About 3 hrs to fix

            Function transitionTo has 95 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                $state.transitionTo = function transitionTo(to, toParams, options) {
                  toParams = toParams || {};
                  options = extend({
                    location: true, inherit: false, relative: null, notify: true, reload: false, $retry: false
                  }, options || {});
            Severity: Major
            Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 3 hrs to fix

              Function transition has 94 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      transition: function(direction, enableBack, allowAnimate) {
                        var deferred;
                        var enteringData = getTransitionData(viewLocals, enteringEle, direction, enteringView);
                        var leavingData = extend(extend({}, enteringData), getViewData(leavingView));
                        enteringData.transitionId = leavingData.transitionId = transitionId;
              Severity: Major
              Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 3 hrs to fix

                Function initSwipeBack has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  self.initSwipeBack = function() {
                    var swipeBackHitWidth = $ionicConfig.views.swipeBackHitWidth();
                    var viewTransition, associatedNavBarCtrl, backView;
                    var deregDragStart, deregDrag, deregRelease;
                    var windowWidth, startDragX, dragPoints;
                Severity: Major
                Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 3 hrs to fix

                  Function name has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                            Resource[name] = function(a1, a2, a3, a4) {
                              var params = {}, data, success, error;
                  
                              /* jshint -W086 */ /* (purposefully fall through case statements) */
                              switch (arguments.length) {
                  Severity: Major
                  Found in examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 3 hrs to fix

                    Function calcWidths has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      self.calcWidths = function(textAlign, isPreviousTitle) {
                        var titleEle = getEle(TITLE);
                        var backBtnEle = getEle(BACK_BUTTON);
                        var x, y, z, b, c, d, childSize, bounds;
                        var childNodes = $element[0].childNodes;
                    Severity: Major
                    Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 3 hrs to fix

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

                            link: function(scope, element, attrs, ngModel) {
                              var indicator = element.children();
                              var dots = Array.prototype.slice.call(indicator.children());
                              var weakest = dots.slice(-1)[0];
                              var weak = dots.slice(-2);
                      Severity: Major
                      Found in examples/server/php/public/directives/passwordStrength.js - About 3 hrs to fix

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

                              link: function(scope, element, attrs, ngModel) {
                                var indicator = element.children();
                                var dots = Array.prototype.slice.call(indicator.children());
                                var weakest = dots.slice(-1)[0];
                                var weak = dots.slice(-2);
                        Severity: Major
                        Found in examples/client/directives/passwordStrength.js - About 3 hrs to fix

                          File angular-sanitize.js has 311 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-sanitize.js - About 3 hrs to fix

                            Function LoginWithTwitter has 108 lines of code (exceeds 50 allowed). Consider refactoring.
                            Open

                            func LoginWithTwitter(w http.ResponseWriter, r *http.Request) {
                            
                                c := oauth.NewConsumer(
                                    config.TWITTER_KEY,
                                    config.TWITTER_SECRET,
                            Severity: Major
                            Found in examples/server/go/oauth.go - About 3 hrs to fix

                              Method twitter has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function twitter(Request $request)
                                  {
                                      $stack = GuzzleHttp\HandlerStack::create();
                              
                                      // Part 1 of 2: Initial request from Satellizer.
                              Severity: Major
                              Found in examples/server/php/app/Http/Controllers/AuthController.php - About 3 hrs to fix

                                Function prelink has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      function prelink($scope, $element, $attr) {
                                        var parentScope = $scope.$parent;
                                        $scope.$watch(function() {
                                          return (parentScope.$hasHeader ? ' has-header' : '') +
                                            (parentScope.$hasSubheader ? ' has-subheader' : '') +
                                Severity: Major
                                Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 3 hrs to fix

                                  Function render has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function render(forceRerender) {
                                        if (render.destroyed) return;
                                        var i;
                                        var ii;
                                        var item;
                                  Severity: Major
                                  Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 3 hrs to fix

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

                                        compile: function($element, $attr) {
                                          var listEl = jqLite('<div class="list">')
                                            .append($element.contents())
                                            .addClass($attr.type);
                                    
                                    
                                    Severity: Major
                                    Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 3 hrs to fix

                                      Function Shared has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var Shared = (function () {
                                              function Shared($q, $window, SatellizerConfig, SatellizerStorage) {
                                                  this.$q = $q;
                                                  this.$window = $window;
                                                  this.SatellizerConfig = SatellizerConfig;
                                      Severity: Major
                                      Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 3 hrs to fix

                                        Function actionSheet has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function actionSheet(opts) {
                                            var scope = $rootScope.$new(true);
                                        
                                            extend(scope, {
                                              cancel: noop,
                                        Severity: Major
                                        Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language