devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,675 of 1,675 total issues

Avoid deeply nested control flow statements.
Open

          if (hist.historyId === currentView.historyId) {
            direction = DIRECTION_FORWARD;

          } else if (currentView.historyId !== hist.historyId) {
            direction = DIRECTION_ENTER;
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

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

            addEventListener: function( type, listener, useCapture ) {
                if( 'addEventListener' in window ) {
                    ( dom.wrapper || document.querySelector( '.reveal' ) ).addEventListener( type, listener, useCapture );
                }
            },
    Severity: Minor
    Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 45 mins to fix
    meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 4262..4266

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

    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

    Avoid deeply nested control flow statements.
    Open

            if (initHeight) viewportProperties.height = '0';
    Severity: Major
    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                    if (!foundHistoryId) {
                      return true;
                    }
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

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

                        section.outerHTML = slidify( getMarkdownFromSlide( section ), {
                            separator: section.getAttribute( 'data-separator' ),
                            verticalSeparator: section.getAttribute( 'data-separator-vertical' ),
                            notesSeparator: section.getAttribute( 'data-separator-notes' ),
                            attributes: getForwardedAttributes( section )
        meetups/meetup06-MobileDev/x-platform/plugin/markdown/markdown.js on lines 225..230

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

        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

        Avoid deeply nested control flow statements.
        Open

                  } else if (scrollTop > maxScrollTop) {
        
                    scrollTop = maxScrollTop;
        
                  } else {
        Severity: Major
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix

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

              cancel: function() {
                if (this.host.cancel) {
                  this.host.cancel();
                }
                this._resolve(false);
          meetups/meetup06-MobileDev/x-platform/ionic/js/angular/angular-animate.js on lines 2586..2591

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

          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

                  removeEventListener: function( type, listener, useCapture ) {
                      if( 'addEventListener' in window ) {
                          ( dom.wrapper || document.querySelector( '.reveal' ) ).removeEventListener( type, listener, useCapture );
                      }
                  },
          Severity: Minor
          Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 45 mins to fix
          meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 4257..4261

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

          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

          Avoid deeply nested control flow statements.
          Open

                      if (!self.__enableScrollX && self.__refreshHeight != null) {
          
                        // hide the refresher when it's behind the header bar in case of header transparency
                        if (scrollTop < 0) {
                          self.__refreshHidden = false;
          Severity: Major
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix

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

                    heightScale = Math.max(self.__indicatorY.minScale, (self.__indicatorY.size - heightDiff) / self.__indicatorY.size);
            Severity: Minor
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 45 mins to fix
            meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5509..5510

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

            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

                                        section.outerHTML = slidify( xhr.responseText, {
                                            separator: section.getAttribute( 'data-separator' ),
                                            verticalSeparator: section.getAttribute( 'data-separator-vertical' ),
                                            notesSeparator: section.getAttribute( 'data-separator-notes' ),
                                            attributes: getForwardedAttributes( section )
            meetups/meetup06-MobileDev/x-platform/plugin/markdown/markdown.js on lines 257..262

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

            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

                    widthScale = Math.max(self.__indicatorX.minScale,
                        (self.__indicatorX.size - widthDiff) / self.__indicatorX.size);
            Severity: Minor
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 45 mins to fix
            meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5557..5557

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

            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

            Avoid deeply nested control flow statements.
            Open

                      if (tmp && tmp.parentHistoryId === currentView.historyId) {
                        direction = DIRECTION_ENTER;
                      }
            Severity: Major
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                        if (forwardView && currentView.stateId !== forwardView.stateId &&
                           currentView.historyId === forwardView.historyId) {
                          // they navigated to a new view but the stack already has a forward view
                          // since its a new view remove any forwards that existed
                          tmp = getHistoryById(forwardView.historyId);
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

                Function rectContains has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    rectContains: function(x, y, x1, y1, x2, y2) {
                Severity: Minor
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                            for (y = 0; y < splitClasses.length; y++) {
                              cssClass = splitClasses[y].trim();
                              if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {
                                existingClasses += cssClass + ' ';
                              }
                  Severity: Major
                  Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                if (!self.__refreshActive) {
                                  self.__startDeceleration(timeStamp);
                                }
                    Severity: Major
                    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix

                      Function resolveState has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {

                        Avoid deeply nested control flow statements.
                        Open

                              } else if (version == 7) {
                                //iPhone == 7.0 WebView
                                viewportProperties.height = DEVICE_HEIGHT;
                              }
                        Severity: Major
                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix

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

                                      toArray( slide.querySelectorAll( 'iframe' ) ).forEach( function( el ) {
                                          el.contentWindow.postMessage( 'slide:stop', '*' );
                                      });
                          Severity: Minor
                          Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 40 mins to fix
                          meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 2733..2735

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

                          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

                          Severity
                          Category
                          Status
                          Source
                          Language