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

            if( window.navigator.pointerEnabled ) {
                // IE 11 uses un-prefixed version of pointer events
                dom.wrapper.addEventListener( 'pointerdown', onPointerDown, false );
                dom.wrapper.addEventListener( 'pointermove', onPointerMove, false );
                dom.wrapper.addEventListener( 'pointerup', onPointerUp, false );
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 1 hr to fix
meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 893..898

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

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

        case ionic.Gestures.EVENT_END:
          // trigger dragend
          if(this.triggered) {
            inst.trigger(this.name + 'end', ev);
          }
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 1 hr to fix
meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1865..1872

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

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

        case ionic.Gestures.EVENT_END:
          // trigger dragend
          if(this.triggered) {
            inst.trigger(this.name + 'end', ev);
          }
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 1 hr to fix
meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1955..1962

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

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

    template:
    '<div class="scroll-refresher invisible" collection-repeat-ignore>' +
      '<div class="ionic-refresher-content" ' +
      'ng-class="{\'ionic-refresher-with-text\': pullingText || refreshingText}">' +
        '<div class="icon-pulling" ng-class="{\'pulling-rotation-disabled\':disablePullingRotation}">' +
meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 8329..8342

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

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

    template: '<div class="action-sheet-backdrop">' +
                '<div class="action-sheet-wrapper">' +
                  '<div class="action-sheet" ng-class="{\'action-sheet-has-icons\': $actionSheetHasIcon}">' +
                    '<div class="action-sheet-group action-sheet-options">' +
                      '<div class="action-sheet-title" ng-if="titleText" ng-bind-html="titleText"></div>' +
meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 11874..11888

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

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( window.navigator.msPointerEnabled ) {
                // IE 10 uses prefixed version of pointer events
                dom.wrapper.addEventListener( 'MSPointerDown', onPointerDown, false );
                dom.wrapper.addEventListener( 'MSPointerMove', onPointerMove, false );
                dom.wrapper.addEventListener( 'MSPointerUp', onPointerUp, false );
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 1 hr to fix
meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 887..898

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

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

        loadViewElements: function(registerData) {
          var x, l, viewEle;
          var viewElements = navViewCtrl.getViewElements();
          var enteringEleIdentifier = getViewElementIdentifier(viewLocals, enteringView);
          var navViewActiveEleId = navViewCtrl.activeEleId();
Severity: Minor
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

    Function $StateRefActiveDirective has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function $StateRefActiveDirective($state, $stateParams, $interpolate) {
      return  {
        restrict: "A",
        controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
          var state, params, activeClass;

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

          initialize: function(opts) {
            var self = this;
      
            opts = ionic.extend({
              onReorder: function() {},
      Severity: Minor
      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

        Function resolveState has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {
              // Make a restricted $stateParams with only the parameters that apply to this state if
              // necessary. In addition to being available to the controller and onEnter/onExit callbacks,
              // we also need $stateParams to be available for any $injector calls we make during the
              // dependency resolution process.

          Function get has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                get: function() {
                  var self = this;
                  function update(fn) {
                    return function() {
                      var x, classes = self.className.split(/\s+/);
          Severity: Minor
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

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

                link: function($scope, $element, $attrs, ctrls) {
                  var tabsCtrl = ctrls[0],
                    tabCtrl = ctrls[1];
            
                  //Remove title attribute so browser-tooltip does not apear
            Severity: Minor
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

              Function instanceMethodCaller has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function instanceMethodCaller(methodName) {
                      return function caller() {
                        var handle = this.handle;
                        var args = arguments;
                        var foundInstancesCount = 0;
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

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

                          if (isDefined($attr.showReorder)) {
                            $scope.$watch('!!(' + $attr.showReorder + ')', function(value) {
                              listCtrl.showReorder(value);
                            });
                          }
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 10801..10805
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 10806..10810

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

                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 3 locations. Consider refactoring.
                Open

                          if (isDefined($attr.canSwipe)) {
                            $scope.$watch('!!(' + $attr.canSwipe + ')', function(value) {
                              listCtrl.canSwipeItems(value);
                            });
                          }
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 10806..10810
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 10811..10815

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

                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 3 locations. Consider refactoring.
                Open

                          if (isDefined($attr.showDelete)) {
                            $scope.$watch('!!(' + $attr.showDelete + ')', function(value) {
                              listCtrl.showDelete(value);
                            });
                          }
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 10801..10805
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 10811..10815

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

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

                        fn: function(i) {
                          return {
                            cx: 16 + (16 * i),
                            cy: 32,
                            sw: 0,
                Severity: Minor
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

                  Function ios has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    provider.transitions.views.ios = function(enteringEle, leavingEle, direction, shouldAnimate) {
                  
                      function setStyles(ele, opacity, x, boxShadowOpacity) {
                        var css = {};
                        css[ionic.CSS.TRANSITION_DURATION] = d.shouldAnimate ? '' : 0;
                  Severity: Minor
                  Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

                    Function sortFragments has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function sortFragments( fragments ) {
                    
                            fragments = toArray( fragments );
                    
                            var ordered = [],
                    Severity: Minor
                    Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 1 hr to fix

                      Function getIndices has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function getIndices( slide ) {
                      
                              // By default, return the current indices
                              var h = indexh,
                                  v = indexv,
                      Severity: Minor
                      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 1 hr to fix
                        Severity
                        Category
                        Status
                        Source
                        Language