sahat/satellizer

View on GitHub

Showing 562 of 562 total issues

Function zoomTo has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  zoomTo: function(level, animate, originLeft, originTop) {
    var self = this;

    if (!self.options.zooming) {
      throw new Error("Zooming is not enabled!");
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/ionic.js - About 1 hr to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

      self.scrollBy = function(left, top, shouldAnimate) {
        self.resize().then(function() {
          scrollView.scrollBy(left, top, !!shouldAnimate);
        });
      };
    Severity: Major
    Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
    examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 7022..7026

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 59.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Function positionItem has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function positionItem(ele, itemType) {
          if (!ele) return;
    
          if (itemType === 'title') {
            // title element
    Severity: Minor
    Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 1 hr to fix

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

              AuthProvider.prototype.oauth1 = function (options) {
                  this.SatellizerConfig.providers[options.name] = angular.extend(options, {
                      oauthType: '1.0'
                  });
              };
      Severity: Major
      Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
      examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 289..293

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 59.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Function showLoader has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function showLoader(options) {
          options = extend({}, $ionicLoadingConfig || {}, options || {});
          var delay = options.delay || options.showDelay || 0;
      
          deregisterStateListener1();
      Severity: Minor
      Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 1 hr to fix

        Function polling has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        var polling = _this.$interval(function () {
                            if (!_this.popup || _this.popup.closed || _this.popup.closed === undefined) {
                                _this.$interval.cancel(polling);
                                reject(new Error('The popup window was closed'));
                            }
        Severity: Minor
        Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

          Function animationsDisabled has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                function animationsDisabled(element, parentElement) {
                  if (rootAnimateState.disabled) {
                    return true;
                  }
          
          
          Severity: Minor
          Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 1 hr to fix

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

              self.enableBack = function(shouldEnable, disableReset) {
                // whether or not the back button show be visible, according
                // to the navigation and history
                if (arguments.length) {
                  isBackEnabled = shouldEnable;
            Severity: Major
            Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
            examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 5001..5009

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 58.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

              var params = {
                code: req.body.code,
                client_id: req.body.clientId,
                client_secret: config.FACEBOOK_SECRET,
                redirect_uri: req.body.redirectUri
            Severity: Major
            Found in examples/server/node/server.js and 1 other location - About 1 hr to fix
            examples/server/node/server.js on lines 275..280

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 58.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                if (isDefined($attrs.hideNavBar)) {
                  deregisters.push($scope.$watch($attrs.hideNavBar, function(val) {
                    navViewCtrl.showBar(!val);
                  }));
                }
            Severity: Major
            Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
            examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 8192..8196

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 58.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

                            instagram: {
                                name: 'instagram',
                                url: '/auth/instagram',
                                authorizationEndpoint: 'https://api.instagram.com/oauth/authorize',
                                redirectUri: window.location.origin,
            Severity: Major
            Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
            examples/ionic/www/lib/satellizer/satellizer.js on lines 75..84

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 58.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                if (isDefined($attrs.hideBackButton)) {
                  deregisters.push($scope.$watch($attrs.hideBackButton, function(val) {
                    navViewCtrl.showBackButton(!val);
                  }));
                }
            Severity: Major
            Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
            examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 8198..8202

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 58.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

                    instagram: {
                      name: 'instagram',
                      url: '/auth/instagram',
                      authorizationEndpoint: 'https://api.instagram.com/oauth/authorize',
                      redirectUri: window.location.origin,
            Severity: Major
            Found in examples/ionic/www/lib/satellizer/satellizer.js and 1 other location - About 1 hr to fix
            examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 65..74

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 58.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

              var params = {
                code: req.body.code,
                client_id: req.body.clientId,
                client_secret: config.GITHUB_SECRET,
                redirect_uri: req.body.redirectUri
            Severity: Major
            Found in examples/server/node/server.js and 1 other location - About 1 hr to fix
            examples/server/node/server.js on lines 545..550

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 58.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

              self.showBack = function(shouldShow, disableReset) {
                // different from enableBack() because this will always have the back
                // visually hidden if false, even if the history says it should show
                if (arguments.length) {
                  isBackShown = shouldShow;
            Severity: Major
            Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
            examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 4990..4998

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 58.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Function $get has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              function $get(   $rootScope,   $q,   $view,   $injector,   $resolve,   $stateParams,   $urlRouter,   $location,   $urlMatcherFactory) {
            Severity: Major
            Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 1 hr to fix

              Function __init__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def __init__(self, email=None, password=None, display_name=None,
              Severity: Major
              Found in examples/server/python/app.py - About 1 hr to fix

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

                      link: function($scope, $element, $attr) {
                        if ($attr.noTapScroll == 'true') {
                          return;
                        }
                        ionic.on('tap', onTap, $element[0]);
                Severity: Minor
                Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 1 hr to fix

                  Function invoke has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        function invoke(key, invocable, params) {
                          // Create a deferred for this invocation. Failures will propagate to the resolution as well.
                          var invocation = $q.defer(), waitParams = 0;
                          function onfailure(reason) {
                            invocation.reject(reason);
                  Severity: Minor
                  Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 1 hr to fix

                    Function registerState has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function registerState(state) {
                        // Wrap a new object around the state so we can store our private details easily.
                        state = inherit(state, {
                          self: state,
                          resolve: state.resolve || {},
                    Severity: Minor
                    Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 1 hr to fix
                      Severity
                      Category
                      Status
                      Source
                      Language