devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,643 of 1,643 total issues

Function __stepThroughDeceleration has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  __stepThroughDeceleration: function(render) {
    var self = this;


    //
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 2 hrs to fix

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

    IonicModule
    .directive('navDirection', ['$ionicViewSwitcher', function($ionicViewSwitcher) {
      return {
        restrict: 'A',
        priority: 1000,
    meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 11420..11431

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

    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

    IonicModule
    .directive('navTransition', ['$ionicViewSwitcher', function($ionicViewSwitcher) {
      return {
        restrict: 'A',
        priority: 1000,
    meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 11318..11329

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

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

        function updateSlides( selector, index ) {
    
            // Select all slides and convert the NodeList result to
            // an array
            var slides = toArray( dom.wrapper.querySelectorAll( selector ) ),
    Severity: Major
    Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 2 hrs to fix

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

          function onPointerMove( event ) {
      
              if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" )  {
                  event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
                  onTouchMove( event );
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 2 other locations - About 2 hrs to fix
      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3761..3768
      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3785..3792

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

      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

          function onPointerUp( event ) {
      
              if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" )  {
                  event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
                  onTouchEnd( event );
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 2 other locations - About 2 hrs to fix
      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3761..3768
      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3773..3780

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

      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

          function onPointerDown( event ) {
      
              if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) {
                  event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
                  onTouchStart( event );
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 2 other locations - About 2 hrs to fix
      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3773..3780
      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3785..3792

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

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

          function onDocumentKeyDown( event ) {
      
              // If there's a condition specified and it returns false,
              // ignore this event
              if( typeof config.keyboardCondition === 'function' && config.keyboardCondition() === false ) {
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 2 hrs to fix

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

            on: function onEvent(gesture, handler){
              var gestures = gesture.split(' ');
              for(var t = 0; t < gestures.length; t++) {
                this.element.addEventListener(gestures[t], handler, false);
              }
        Severity: Major
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
        meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 776..782

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

        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

            off: function offEvent(gesture, handler){
              var gestures = gesture.split(' ');
              for(var t = 0; t < gestures.length; t++) {
                this.element.removeEventListener(gestures[t], handler, false);
              }
        Severity: Major
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
        meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 761..767

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

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

          __repositionScrollbars: function() {
            var self = this,
                heightScale, widthScale,
                widthDiff, heightDiff,
                x, y,
        Severity: Major
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.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 meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 2 hrs to fix

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

                __initEventHandlers: function() {
                  var self = this;
            
                  // Event Handler
                  var container = self.__container;
            Severity: Major
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 2 hrs to fix

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

                  function magnify( rect, scale ) {
              
                      var scrollOffset = getScrollOffset();
              
                      // Ensure a width/height is set
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/plugin/zoom-js/zoom.js - About 2 hrs to fix

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

                    function onTouchMove( event ) {
                
                        // Each touch should only trigger one action
                        if( !touch.captured ) {
                            onUserInput( event );
                Severity: Major
                Found in meetups/meetup06-MobileDev/x-platform/js/reveal.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 meetups/meetup06-MobileDev/x-platform/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',

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

                                  toArray( slide.querySelectorAll( 'iframe[src*="player.vimeo.com/"]' ) ).forEach( function( el ) {
                                      if( !el.hasAttribute( 'data-ignore' ) && typeof el.contentWindow.postMessage === 'function' ) {
                                          el.contentWindow.postMessage( '{"method":"pause"}', '*' );
                                      }
                                  });
                      Severity: Major
                      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 2 hrs to fix
                      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 2774..2778

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

                      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

                                  toArray( slide.querySelectorAll( 'iframe[src*="youtube.com/embed/"]' ) ).forEach( function( el ) {
                                      if( !el.hasAttribute( 'data-ignore' ) && typeof el.contentWindow.postMessage === 'function' ) {
                                          el.contentWindow.postMessage( '{"event":"command","func":"pauseVideo","args":""}', '*' );
                                      }
                                  });
                      Severity: Major
                      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 2 hrs to fix
                      meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 2781..2785

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

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