devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,642 of 1,642 total issues

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

                else if( i > index ) {
                    // Any element subsequent to index is given the 'future' class
                    element.classList.add( reverse ? 'past' : 'future' );

                    if( config.fragments ) {
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 4 hrs to fix
meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 2193..2222

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 116.

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( i < index ) {
                    // Any element previous to index is given the 'past' class
                    element.classList.add( reverse ? 'future' : 'past' );

                    if( config.fragments ) {
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 4 hrs to fix
meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 2208..2222

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 116.

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 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 meetups/meetup06-MobileDev/x-platform/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 meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 3 hrs to fix

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

          function navigateRight() {
      
              // Reverse for RTL
              if( config.rtl ) {
                  if( ( isOverview() || previousFragment() === false ) && availableRoutes().right ) {
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 3 hrs to fix
      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3377..3390

      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 112.

      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

          function navigateLeft() {
      
              // Reverse for RTL
              if( config.rtl ) {
                  if( ( isOverview() || nextFragment() === false ) && availableRoutes().left ) {
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 3 hrs to fix
      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3392..3405

      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 112.

      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 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 || {});

        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 meetups/meetup06-MobileDev/x-platform/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) {

            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 meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 3 hrs to fix

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

                  if (self.options.scrollingY) {
                    indicatorY = {
                      el: self.__createScrollbar('v'),
                      sizeRatio: 1
                    };
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 3 hrs to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5411..5422

              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 109.

              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 (self.options.scrollingX) {
                    indicatorX = {
                      el: self.__createScrollbar('h'),
                      sizeRatio: 1
                    };
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 3 hrs to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5424..5435

              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 109.

              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 prepareAnchoredAnimation has 92 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function prepareAnchoredAnimation(classes, outAnchor, inAnchor) {
                    var clone = jqLite(getDomNode(outAnchor).cloneNode(true));
                    var startingClasses = filterCssClasses(getClassVal(clone));
              
                    outAnchor.addClass(NG_ANIMATE_SHIM_CLASS_NAME);

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

                      if (scrollOutsideY !== 0) {
                        var isHeadingOutwardsY = scrollOutsideY * self.__decelerationVelocityY <= self.__minDecelerationScrollTop;
                        if (isHeadingOutwardsY) {
                          self.__decelerationVelocityY += scrollOutsideY * penetrationDeceleration;
                        }
                Severity: Major
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 3 hrs to fix
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 6802..6812

                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 108.

                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 (scrollOutsideX !== 0) {
                        var isHeadingOutwardsX = scrollOutsideX * self.__decelerationVelocityX <= self.__minDecelerationScrollLeft;
                        if (isHeadingOutwardsX) {
                          self.__decelerationVelocityX += scrollOutsideX * penetrationDeceleration;
                        }
                Severity: Major
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 3 hrs to fix
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 6814..6824

                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 108.

                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 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 meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 3 hrs to fix

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

                            } else if (currentView.historyId !== hist.historyId) {
                              direction = DIRECTION_ENTER;
                  
                              tmp = getHistoryById(currentView.historyId);
                              if (tmp && tmp.parentHistoryId === hist.parentHistoryId) {
                  meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 813..826

                  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 105.

                  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

                          } else if (currentView) {
                            direction = DIRECTION_EXIT;
                  
                            tmp = getHistoryById(backView.historyId);
                            if (tmp && tmp.parentHistoryId === currentView.historyId) {
                  meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 930..943

                  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 105.

                  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

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

                  /**
                   * @license AngularJS v1.4.3
                   * (c) 2010-2015 Google, Inc. http://angularjs.org
                   * License: MIT
                   */

                    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 meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 3 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language